42use Psr\Log\LoggerInterface;
53 private $magicWordFactory;
62 private $specialPageFactory;
65 private $linkRendererFactory;
74 private $badFileLookup;
77 private $languageConverterFactory;
80 private $languageNameUtils;
83 private $userOptionsLookup;
89 private $titleFormatter;
92 private $httpRequestFactory;
95 private $trackingCategories;
98 private $signatureValidatorFactory;
101 private $userNameUtils;
114 private $hookContainer;
123 private $mainInstance;
158 LoggerInterface $logger,
175 wfDebug( __CLASS__ .
": using default preprocessor" );
177 $this->svcOptions = $svcOptions;
178 $this->magicWordFactory = $magicWordFactory;
179 $this->contLang = $contLang;
180 $this->urlUtils = $urlUtils;
181 $this->specialPageFactory = $spFactory;
182 $this->linkRendererFactory = $linkRendererFactory;
183 $this->nsInfo = $nsInfo;
184 $this->logger = $logger;
185 $this->badFileLookup = $badFileLookup;
186 $this->languageConverterFactory = $languageConverterFactory;
187 $this->languageNameUtils = $languageNameUtils;
188 $this->hookContainer = $hookContainer;
190 $this->wanCache = $wanCache;
191 $this->userOptionsLookup = $userOptionsLookup;
192 $this->userFactory = $userFactory;
193 $this->titleFormatter = $titleFormatter;
194 $this->httpRequestFactory = $httpRequestFactory;
195 $this->trackingCategories = $trackingCategories;
196 $this->signatureValidatorFactory = $signatureValidatorFactory;
197 $this->userNameUtils = $userNameUtils;
215 $this->magicWordFactory,
219 $this->specialPageFactory,
220 $this->linkRendererFactory,
223 $this->badFileLookup,
224 $this->languageConverterFactory,
225 $this->languageNameUtils,
226 $this->hookContainer,
229 $this->userOptionsLookup,
231 $this->titleFormatter,
232 $this->httpRequestFactory,
233 $this->trackingCategories,
234 $this->signatureValidatorFactory,
238 self::$inParserFactory--;
255 if ( $this->mainInstance ===
null ) {
256 $this->mainInstance = $this->create();
258 return $this->mainInstance;
273 $instance = $this->getMainInstance();
274 if ( $instance->isLocked() ) {
275 $instance = $this->create();
283class_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.