MediaWiki REL1_35
ParserFactory Class Reference
Collaboration diagram for ParserFactory:

Public Member Functions

 __construct (ServiceOptions $svcOptions, MagicWordFactory $magicWordFactory, Language $contLang, string $urlProtocols, SpecialPageFactory $spFactory, LinkRendererFactory $linkRendererFactory, NamespaceInfo $nsInfo, LoggerInterface $logger, BadFileLookup $badFileLookup, LanguageConverterFactory $languageConverterFactory, HookContainer $hookContainer)
 
 create ()
 Creates a new parser.
 

Static Public Attributes

static int $inParserFactory = 0
 Track calls to Parser constructor to aid in deprecation of direct Parser invocation.
 

Private Attributes

BadFileLookup $badFileLookup
 
Language $contLang
 
HookContainer $hookContainer
 
LanguageConverterFactory $languageConverterFactory
 
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 ( ServiceOptions  $svcOptions,
MagicWordFactory  $magicWordFactory,
Language  $contLang,
string  $urlProtocols,
SpecialPageFactory  $spFactory,
LinkRendererFactory  $linkRendererFactory,
NamespaceInfo  $nsInfo,
LoggerInterface  $logger,
BadFileLookup  $badFileLookup,
LanguageConverterFactory  $languageConverterFactory,
HookContainer  $hookContainer 
)
Parameters
ServiceOptions$svcOptions
MagicWordFactory$magicWordFactory
Language$contLangContent language
string$urlProtocolsAs returned from wfUrlProtocols()
SpecialPageFactory$spFactory
LinkRendererFactory$linkRendererFactory
NamespaceInfo$nsInfo
LoggerInterface$logger
BadFileLookup$badFileLookup
LanguageConverterFactory$languageConverterFactory
HookContainer$hookContainer
Since
1.32

Definition at line 91 of file ParserFactory.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), and wfDebug().

Member Function Documentation

◆ create()

ParserFactory::create ( )

Creates a new parser.

Returns
Parser
Since
1.32

Definition at line 127 of file ParserFactory.php.

Member Data Documentation

◆ $badFileLookup

BadFileLookup ParserFactory::$badFileLookup
private

Definition at line 59 of file ParserFactory.php.

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 41 of file ParserFactory.php.

◆ $hookContainer

HookContainer ParserFactory::$hookContainer
private

Definition at line 75 of file ParserFactory.php.

◆ $inParserFactory

int ParserFactory::$inParserFactory = 0
static

Track calls to Parser constructor to aid in deprecation of direct Parser invocation.

This is temporary: it will be removed once the deprecation notice period is over and the underlying method calls are refactored.

Definition at line 72 of file ParserFactory.php.

◆ $languageConverterFactory

LanguageConverterFactory ParserFactory::$languageConverterFactory
private

Definition at line 62 of file ParserFactory.php.

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 50 of file ParserFactory.php.

◆ $logger

LoggerInterface ParserFactory::$logger
private

Definition at line 56 of file ParserFactory.php.

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 38 of file ParserFactory.php.

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 53 of file ParserFactory.php.

◆ $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.

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 44 of file ParserFactory.php.


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