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, TidyDriverBase $tidy, WANObjectCache $wanCache, UserOptionsLookup $userOptionsLookup, UserFactory $userFactory, TitleFormatter $titleFormatter, HttpRequestFactory $httpRequestFactory)
 
 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
 
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 $badFileLookup, $contLang, $hookContainer, $httpRequestFactory, $languageConverterFactory, $linkRendererFactory, $logger, $magicWordFactory, $nsInfo, $svcOptions, $tidy, $titleFormatter, $urlProtocols, $userFactory, $userOptionsLookup, $wanCache, 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.

Referenced by __construct().

◆ $contLang

Language ParserFactory::$contLang
private

Definition at line 45 of file ParserFactory.php.

Referenced by __construct().

◆ $hookContainer

HookContainer ParserFactory::$hookContainer
private

Definition at line 91 of file ParserFactory.php.

Referenced by __construct().

◆ $httpRequestFactory

HttpRequestFactory ParserFactory::$httpRequestFactory
private

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

Access: internal

Definition at line 88 of file ParserFactory.php.

Referenced by Parser\__construct().

◆ $languageConverterFactory

LanguageConverterFactory ParserFactory::$languageConverterFactory
private

Definition at line 66 of file ParserFactory.php.

Referenced by __construct().

◆ $linkRendererFactory

LinkRendererFactory ParserFactory::$linkRendererFactory
private

Definition at line 54 of file ParserFactory.php.

Referenced by __construct().

◆ $logger

LoggerInterface ParserFactory::$logger
private

Definition at line 60 of file ParserFactory.php.

Referenced by __construct().

◆ $magicWordFactory

MagicWordFactory ParserFactory::$magicWordFactory
private

Definition at line 42 of file ParserFactory.php.

Referenced by __construct().

◆ $nsInfo

NamespaceInfo ParserFactory::$nsInfo
private

Definition at line 57 of file ParserFactory.php.

Referenced by __construct().

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

Referenced by __construct().

◆ $tidy

TidyDriverBase ParserFactory::$tidy
private

Definition at line 94 of file ParserFactory.php.

Referenced by __construct().

◆ $titleFormatter

TitleFormatter ParserFactory::$titleFormatter
private

Definition at line 75 of file ParserFactory.php.

Referenced by __construct().

◆ $urlProtocols

string ParserFactory::$urlProtocols
private

Definition at line 48 of file ParserFactory.php.

Referenced by __construct().

◆ $userFactory

UserFactory ParserFactory::$userFactory
private

Definition at line 72 of file ParserFactory.php.

Referenced by __construct().

◆ $userOptionsLookup

UserOptionsLookup ParserFactory::$userOptionsLookup
private

Definition at line 69 of file ParserFactory.php.

Referenced by __construct().

◆ $wanCache

WANObjectCache ParserFactory::$wanCache
private

Definition at line 97 of file ParserFactory.php.

Referenced by __construct().


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