MediaWiki  master
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. More...
 

Static Public Attributes

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

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 $badFileLookup, $contLang, $hookContainer, $languageConverterFactory, $linkRendererFactory, $logger, $magicWordFactory, $nsInfo, $svcOptions, $urlProtocols, MediaWiki\Config\ServiceOptions\assertRequiredOptions(), Parser\CONSTRUCTOR_OPTIONS, 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.

Referenced by __construct().

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 41 of file ParserFactory.php.

Referenced by __construct().

◆ $hookContainer

HookContainer ParserFactory::$hookContainer
private

Definition at line 75 of file ParserFactory.php.

Referenced by __construct().

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

Referenced by Parser\__construct().

◆ $languageConverterFactory

LanguageConverterFactory ParserFactory::$languageConverterFactory
private

Definition at line 62 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: