MediaWiki  1.34.0
ParserFactory Class Reference
Collaboration diagram for ParserFactory:

Public Member Functions

 __construct ( $svcOptions, MagicWordFactory $magicWordFactory, Language $contLang, $urlProtocols, SpecialPageFactory $spFactory, $linkRendererFactory, $nsInfo=null, $logger=null, BadFileLookup $badFileLookup=null)
 Old parameter list, which we support for backwards compatibility, were: array $parserConf See $wgParserConf documentation MagicWordFactory $magicWordFactory Language $contLang Content language string $urlProtocols As returned from wfUrlProtocols() SpecialPageFactory $spFactory Config $siteConfig LinkRendererFactory $linkRendererFactory NamespaceInfo|null $nsInfo. More...
 
 create ()
 

Private Attributes

BadFileLookup $badFileLookup
 
Language $contLang
 
LinkRendererFactory $linkRendererFactory
 
LoggerInterface $logger
 
MagicWordFactory $magicWordFactory
 
NamespaceInfo $nsInfo
 
SpecialPageFactory $specialPageFactory
 
ServiceOptions $svcOptions
 
string $urlProtocols
 

Detailed Description

Since
1.32

Definition at line 33 of file ParserFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ParserFactory::__construct (   $svcOptions,
MagicWordFactory  $magicWordFactory,
Language  $contLang,
  $urlProtocols,
SpecialPageFactory  $spFactory,
  $linkRendererFactory,
  $nsInfo = null,
  $logger = null,
BadFileLookup  $badFileLookup = null 
)

Old parameter list, which we support for backwards compatibility, were: array $parserConf See $wgParserConf documentation MagicWordFactory $magicWordFactory Language $contLang Content language string $urlProtocols As returned from wfUrlProtocols() SpecialPageFactory $spFactory Config $siteConfig LinkRendererFactory $linkRendererFactory NamespaceInfo|null $nsInfo.

Some type declarations were intentionally omitted so that the backwards compatibility code would work. When backwards compatibility is no longer required, we should remove it, and and add the omitted type declarations.

Parameters
ServiceOptions | array$svcOptions
MagicWordFactory$magicWordFactory
Language$contLangContent language
string$urlProtocolsAs returned from wfUrlProtocols()
SpecialPageFactory$spFactory
LinkRendererFactory$linkRendererFactory
NamespaceInfo | LinkRendererFactory | null$nsInfo
LoggerInterface | null$logger
BadFileLookup | null$badFileLookup
Since
1.32

Definition at line 87 of file ParserFactory.php.

References $badFileLookup, $contLang, $linkRendererFactory, $logger, $magicWordFactory, $nsInfo, $svcOptions, $urlProtocols, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), wfDebug(), and wfDeprecated().

Member Function Documentation

◆ create()

ParserFactory::create ( )
Returns
Parser
Since
1.32

Definition at line 136 of file ParserFactory.php.

Member Data Documentation

◆ $badFileLookup

BadFileLookup ParserFactory::$badFileLookup
private

Definition at line 59 of file ParserFactory.php.

Referenced by __construct().

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 41 of file ParserFactory.php.

Referenced by __construct().

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 50 of file ParserFactory.php.

Referenced by __construct().

◆ $logger

LoggerInterface ParserFactory::$logger
private

Definition at line 56 of file ParserFactory.php.

Referenced by __construct().

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 38 of file ParserFactory.php.

Referenced by __construct().

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 53 of file ParserFactory.php.

Referenced by __construct().

◆ $specialPageFactory

SpecialPageFactory ParserFactory::$specialPageFactory
private

Definition at line 47 of file ParserFactory.php.

◆ $svcOptions

ServiceOptions ParserFactory::$svcOptions
private

Definition at line 35 of file ParserFactory.php.

Referenced by __construct().

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 44 of file ParserFactory.php.

Referenced by __construct().


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