MediaWiki REL1_37
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, TidyDriverBase $tidy, WANObjectCache $wanCache, UserOptionsLookup $userOptionsLookup, UserFactory $userFactory, TitleFormatter $titleFormatter, HttpRequestFactory $httpRequestFactory)
 
 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
 
HttpRequestFactory $httpRequestFactory
 
LanguageConverterFactory $languageConverterFactory
 
LinkRendererFactory $linkRendererFactory
 
LoggerInterface $logger
 
MagicWordFactory $magicWordFactory
 
NamespaceInfo $nsInfo
 
SpecialPageFactory $specialPageFactory
 
ServiceOptions $svcOptions
 
TidyDriverBase $tidy
 
TitleFormatter $titleFormatter
 
string $urlProtocols
 
UserFactory $userFactory
 
UserOptionsLookup $userOptionsLookup
 
WANObjectCache $wanCache
 

Detailed Description

Since
1.32

Definition at line 37 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,
TidyDriverBase  $tidy,
WANObjectCache  $wanCache,
UserOptionsLookup  $userOptionsLookup,
UserFactory  $userFactory,
TitleFormatter  $titleFormatter,
HttpRequestFactory  $httpRequestFactory 
)
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
TidyDriverBase$tidy
WANObjectCache$wanCache
UserOptionsLookup$userOptionsLookup
UserFactory$userFactory
TitleFormatter$titleFormatter
HttpRequestFactory$httpRequestFactory
Since
1.32
Access: internal

Definition at line 120 of file ParserFactory.php.

References $userOptionsLookup, 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 168 of file ParserFactory.php.

Member Data Documentation

◆ $badFileLookup

BadFileLookup ParserFactory::$badFileLookup
private

Definition at line 63 of file ParserFactory.php.

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 45 of file ParserFactory.php.

◆ $hookContainer

HookContainer ParserFactory::$hookContainer
private

Definition at line 91 of file ParserFactory.php.

◆ $httpRequestFactory

HttpRequestFactory ParserFactory::$httpRequestFactory
private

Definition at line 78 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.

Access: internal

Definition at line 88 of file ParserFactory.php.

◆ $languageConverterFactory

LanguageConverterFactory ParserFactory::$languageConverterFactory
private

Definition at line 66 of file ParserFactory.php.

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 54 of file ParserFactory.php.

◆ $logger

LoggerInterface ParserFactory::$logger
private

Definition at line 60 of file ParserFactory.php.

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 42 of file ParserFactory.php.

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 57 of file ParserFactory.php.

◆ $specialPageFactory

SpecialPageFactory ParserFactory::$specialPageFactory
private

Definition at line 51 of file ParserFactory.php.

◆ $svcOptions

ServiceOptions ParserFactory::$svcOptions
private

Definition at line 39 of file ParserFactory.php.

◆ $tidy

TidyDriverBase ParserFactory::$tidy
private

Definition at line 94 of file ParserFactory.php.

◆ $titleFormatter

TitleFormatter ParserFactory::$titleFormatter
private

Definition at line 75 of file ParserFactory.php.

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 48 of file ParserFactory.php.

◆ $userFactory

UserFactory ParserFactory::$userFactory
private

Definition at line 72 of file ParserFactory.php.

◆ $userOptionsLookup

UserOptionsLookup ParserFactory::$userOptionsLookup
private

Definition at line 69 of file ParserFactory.php.

◆ $wanCache

WANObjectCache ParserFactory::$wanCache
private

Definition at line 97 of file ParserFactory.php.


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