MediaWiki  master
MediaWiki\Preferences\SignatureValidatorFactory Class Reference
Collaboration diagram for MediaWiki\Preferences\SignatureValidatorFactory:

Public Member Functions

 __construct (ServiceOptions $options, callable $parserFactoryClosure, SpecialPageFactory $specialPageFactory, TitleFactory $titleFactory)
 
 newSignatureValidator (UserIdentity $user, ?MessageLocalizer $localizer, ParserOptions $popts)
 

Private Attributes

callable $parserFactoryClosure
 
ServiceOptions $serviceOptions
 
SpecialPageFactory $specialPageFactory
 
TitleFactory $titleFactory
 

Detailed Description

Since
1.38

Definition at line 34 of file SignatureValidatorFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Preferences\SignatureValidatorFactory::__construct ( ServiceOptions  $options,
callable  $parserFactoryClosure,
SpecialPageFactory  $specialPageFactory,
TitleFactory  $titleFactory 
)
Parameters
ServiceOptions$options
callable$parserFactoryClosureA function which returns a ParserFactory. We use this instead of an actual ParserFactory to avoid a circular dependency, since Parser also needs a SignatureValidatorFactory for signature formatting.
SpecialPageFactory$specialPageFactory
TitleFactory$titleFactory

Definition at line 55 of file SignatureValidatorFactory.php.

References MediaWiki\Preferences\SignatureValidatorFactory\$parserFactoryClosure, MediaWiki\Preferences\SignatureValidatorFactory\$specialPageFactory, MediaWiki\Preferences\SignatureValidatorFactory\$titleFactory, and MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ newSignatureValidator()

MediaWiki\Preferences\SignatureValidatorFactory::newSignatureValidator ( UserIdentity  $user,
?MessageLocalizer  $localizer,
ParserOptions  $popts 
)
Parameters
UserIdentity$user
MessageLocalizer | null$localizer
ParserOptions$popts
Returns
SignatureValidator

Definition at line 75 of file SignatureValidatorFactory.php.

Member Data Documentation

◆ $parserFactoryClosure

callable MediaWiki\Preferences\SignatureValidatorFactory::$parserFactoryClosure
private

◆ $serviceOptions

ServiceOptions MediaWiki\Preferences\SignatureValidatorFactory::$serviceOptions
private

Definition at line 36 of file SignatureValidatorFactory.php.

◆ $specialPageFactory

SpecialPageFactory MediaWiki\Preferences\SignatureValidatorFactory::$specialPageFactory
private

◆ $titleFactory

TitleFactory MediaWiki\Preferences\SignatureValidatorFactory::$titleFactory
private

The documentation for this class was generated from the following file: