MediaWiki  master
ParserFactory Class Reference
Collaboration diagram for ParserFactory:

Public Member Functions

 __construct ( $svcOptions, MagicWordFactory $magicWordFactory, Language $contLang, $urlProtocols, SpecialPageFactory $spFactory, $linkRendererFactory, $nsInfo=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

Language $contLang
 
LinkRendererFactory $linkRendererFactory
 
MagicWordFactory $magicWordFactory
 
NamespaceInfo $nsInfo
 
SpecialPageFactory $specialPageFactory
 
ServiceOptions $svcOptions
 
string $urlProtocols
 

Detailed Description

Since
1.32

Definition at line 30 of file ParserFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ParserFactory::__construct (   $svcOptions,
MagicWordFactory  $magicWordFactory,
Language  $contLang,
  $urlProtocols,
SpecialPageFactory  $spFactory,
  $linkRendererFactory,
  $nsInfo = 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
Since
1.32

Definition at line 76 of file ParserFactory.php.

References Parser\$constructorOptions, $contLang, $linkRendererFactory, $magicWordFactory, $nsInfo, $svcOptions, $urlProtocols, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), class, Parser\getDefaultPreprocessorClass(), null, wfDebug(), and wfDeprecated().

Member Function Documentation

◆ create()

ParserFactory::create ( )
Returns
Parser
Since
1.32

Definition at line 116 of file ParserFactory.php.

Member Data Documentation

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 38 of file ParserFactory.php.

Referenced by __construct().

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 47 of file ParserFactory.php.

Referenced by __construct().

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 35 of file ParserFactory.php.

Referenced by __construct().

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 50 of file ParserFactory.php.

Referenced by __construct().

◆ $specialPageFactory

SpecialPageFactory ParserFactory::$specialPageFactory
private

Definition at line 44 of file ParserFactory.php.

◆ $svcOptions

ServiceOptions ParserFactory::$svcOptions
private

Definition at line 32 of file ParserFactory.php.

Referenced by __construct().

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 41 of file ParserFactory.php.

Referenced by __construct().


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