|
MediaWiki REL1_39
|
Public Member Functions | |
| __construct (ServiceOptions $svcOptions, MagicWordFactory $magicWordFactory, Language $contLang, UrlUtils $urlUtils, 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, TrackingCategories $trackingCategories, SignatureValidatorFactory $signatureValidatorFactory, UserNameUtils $userNameUtils) | |
| create () | |
| Creates a new parser. | |
| getInstance () | |
| Get the main shared instance, or if it is locked, get a new instance. | |
| getMainInstance () | |
| Get the main shared instance. | |
Static Public Attributes | |
| static int | $inParserFactory = 0 |
| Track calls to Parser constructor to aid in deprecation of direct Parser invocation. | |
Definition at line 40 of file ParserFactory.php.
| ParserFactory::__construct | ( | ServiceOptions | $svcOptions, |
| MagicWordFactory | $magicWordFactory, | ||
| Language | $contLang, | ||
| UrlUtils | $urlUtils, | ||
| 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, | ||
| TrackingCategories | $trackingCategories, | ||
| SignatureValidatorFactory | $signatureValidatorFactory, | ||
| UserNameUtils | $userNameUtils ) |
| ServiceOptions | $svcOptions | |
| MagicWordFactory | $magicWordFactory | |
| Language | $contLang | Content language |
| UrlUtils | $urlUtils | |
| 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 | |
| TrackingCategories | $trackingCategories | |
| SignatureValidatorFactory | $signatureValidatorFactory | |
| UserNameUtils | $userNameUtils |
Definition at line 138 of file ParserFactory.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), Parser\CONSTRUCTOR_OPTIONS, and wfDebug().
| ParserFactory::create | ( | ) |
Creates a new parser.
Definition at line 192 of file ParserFactory.php.
Referenced by MediaWiki\Parser\Parsoid\Config\DataAccess\__construct().
| ParserFactory::getInstance | ( | ) |
Get the main shared instance, or if it is locked, get a new instance.
Definition at line 244 of file ParserFactory.php.
| ParserFactory::getMainInstance | ( | ) |
Get the main shared instance.
This is unsafe when the caller is not in a top-level context, because re-entering the parser will throw an exception.
Definition at line 231 of file ParserFactory.php.
|
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 100 of file ParserFactory.php.