15use MediaWiki\Languages\LanguageConverterFactory;
16use MediaWiki\Languages\LanguageNameUtils;
28use Psr\Log\LoggerInterface;
46 private $mainInstance;
60 private readonly LoggerInterface $logger,
62 private readonly LanguageConverterFactory $languageConverterFactory,
63 private readonly LanguageNameUtils $languageNameUtils,
77 wfDebug( __CLASS__ .
": using default preprocessor" );
95 $this->magicWordFactory,
98 $this->specialPageFactory,
99 $this->linkRendererFactory,
102 $this->badFileLookup,
103 $this->languageConverterFactory,
104 $this->languageNameUtils,
105 $this->hookContainer,
108 $this->userOptionsLookup,
110 $this->titleFormatter,
111 $this->httpRequestFactory,
112 $this->trackingCategories,
113 $this->signatureValidatorFactory,
117 self::$inParserFactory--;
134 if ( $this->mainInstance ===
null ) {
135 $this->mainInstance = $this->create();
137 return $this->mainInstance;
152 $instance = $this->getMainInstance();
153 if ( $instance->isLocked() ) {
154 $instance = $this->create();
162class_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.