30use Psr\Log\LoggerInterface;
48 private $mainInstance;
63 private readonly LoggerInterface $logger,
82 wfDebug( __CLASS__ .
": using default preprocessor" );
100 $this->parserCoreTagHooks,
101 $this->magicWordFactory,
104 $this->specialPageFactory,
105 $this->linkRendererFactory,
108 $this->badFileLookup,
110 $this->languageFactory,
111 $this->languageConverterFactory,
112 $this->languageNameUtils,
113 $this->hookContainer,
116 $this->userOptionsLookup,
118 $this->titleFormatter,
119 $this->httpRequestFactory,
120 $this->trackingCategories,
121 $this->signatureValidatorFactory,
125 self::$inParserFactory--;
142 if ( $this->mainInstance ===
null ) {
143 $this->mainInstance = $this->create();
145 return $this->mainInstance;
160 $instance = $this->getMainInstance();
161 if ( $instance->isLocked() ) {
162 $instance = $this->create();
170class_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.