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)
 
 create ()
 Creates a new parser. More...
 

Private Attributes

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

Detailed Description

Since
1.32

Definition at line 32 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 
)
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
Since
1.32

Definition at line 76 of file ParserFactory.php.

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

Member Function Documentation

◆ create()

ParserFactory::create ( )

Creates a new parser.

Returns
Parser
Since
1.32

Definition at line 110 of file ParserFactory.php.

Member Data Documentation

◆ $badFileLookup

BadFileLookup ParserFactory::$badFileLookup
private

Definition at line 58 of file ParserFactory.php.

Referenced by __construct().

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 40 of file ParserFactory.php.

Referenced by __construct().

◆ $languageConverterFactory

LanguageConverterFactory ParserFactory::$languageConverterFactory
private

Definition at line 61 of file ParserFactory.php.

Referenced by __construct().

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 49 of file ParserFactory.php.

Referenced by __construct().

◆ $logger

LoggerInterface ParserFactory::$logger
private

Definition at line 55 of file ParserFactory.php.

Referenced by __construct().

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 37 of file ParserFactory.php.

Referenced by __construct().

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 52 of file ParserFactory.php.

Referenced by __construct().

◆ $specialPageFactory

SpecialPageFactory ParserFactory::$specialPageFactory
private

Definition at line 46 of file ParserFactory.php.

◆ $svcOptions

ServiceOptions ParserFactory::$svcOptions
private

Definition at line 34 of file ParserFactory.php.

Referenced by __construct().

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 43 of file ParserFactory.php.

Referenced by __construct().


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