|
MediaWiki master
|
Public Member Functions | |
| __construct (private readonly ServiceOptions $svcOptions, private readonly MagicWordFactory $magicWordFactory, private readonly Language $contLang, private readonly UrlUtils $urlUtils, private readonly SpecialPageFactory $specialPageFactory, private readonly LinkRendererFactory $linkRendererFactory, private readonly NamespaceInfo $nsInfo, private readonly LoggerInterface $logger, private readonly BadFileLookup $badFileLookup, private readonly LanguageConverterFactory $languageConverterFactory, private readonly LanguageNameUtils $languageNameUtils, private readonly HookContainer $hookContainer, private readonly TidyDriverBase $tidy, private readonly WANObjectCache $wanCache, private readonly UserOptionsLookup $userOptionsLookup, private readonly UserFactory $userFactory, private readonly TitleFormatter $titleFormatter, private readonly HttpRequestFactory $httpRequestFactory, private readonly TrackingCategories $trackingCategories, private readonly SignatureValidatorFactory $signatureValidatorFactory, private readonly 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 34 of file ParserFactory.php.
| MediaWiki\Parser\ParserFactory::__construct | ( | private readonly ServiceOptions | $svcOptions, |
| private readonly MagicWordFactory | $magicWordFactory, | ||
| private readonly Language | $contLang, | ||
| private readonly UrlUtils | $urlUtils, | ||
| private readonly SpecialPageFactory | $specialPageFactory, | ||
| private readonly LinkRendererFactory | $linkRendererFactory, | ||
| private readonly NamespaceInfo | $nsInfo, | ||
| private readonly LoggerInterface | $logger, | ||
| private readonly BadFileLookup | $badFileLookup, | ||
| private readonly LanguageConverterFactory | $languageConverterFactory, | ||
| private readonly LanguageNameUtils | $languageNameUtils, | ||
| private readonly HookContainer | $hookContainer, | ||
| private readonly TidyDriverBase | $tidy, | ||
| private readonly WANObjectCache | $wanCache, | ||
| private readonly UserOptionsLookup | $userOptionsLookup, | ||
| private readonly UserFactory | $userFactory, | ||
| private readonly TitleFormatter | $titleFormatter, | ||
| private readonly HttpRequestFactory | $httpRequestFactory, | ||
| private readonly TrackingCategories | $trackingCategories, | ||
| private readonly SignatureValidatorFactory | $signatureValidatorFactory, | ||
| private readonly UserNameUtils | $userNameUtils ) |
Definition at line 52 of file ParserFactory.php.
References MediaWiki\Parser\Parser\CONSTRUCTOR_OPTIONS, and wfDebug().
| MediaWiki\Parser\ParserFactory::create | ( | ) |
Creates a new parser.
Definition at line 90 of file ParserFactory.php.
| MediaWiki\Parser\ParserFactory::getInstance | ( | ) |
Get the main shared instance, or if it is locked, get a new instance.
Definition at line 151 of file ParserFactory.php.
| MediaWiki\Parser\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 133 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 43 of file ParserFactory.php.
Referenced by MediaWiki\Parser\Parser\__construct().