28use Psr\Log\LoggerInterface;
46 private $mainInstance;
61 private readonly LoggerInterface $logger,
78 wfDebug( __CLASS__ .
": using default preprocessor" );
96 $this->parserCoreTagHooks,
97 $this->magicWordFactory,
100 $this->specialPageFactory,
101 $this->linkRendererFactory,
104 $this->badFileLookup,
105 $this->languageConverterFactory,
106 $this->languageNameUtils,
107 $this->hookContainer,
110 $this->userOptionsLookup,
112 $this->titleFormatter,
113 $this->httpRequestFactory,
114 $this->trackingCategories,
115 $this->signatureValidatorFactory,
119 self::$inParserFactory--;
136 if ( $this->mainInstance ===
null ) {
137 $this->mainInstance = $this->create();
139 return $this->mainInstance;
154 $instance = $this->getMainInstance();
155 if ( $instance->isLocked() ) {
156 $instance = $this->create();
164class_alias( ParserFactory::class,
'ParserFactory' );
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
Factory for handling the special page list and generating SpecialPage objects.