assertRequiredOptions( Parser::CONSTRUCTOR_OPTIONS ); wfDebug( __CLASS__ . ": using default preprocessor" ); $this->svcOptions = $svcOptions; $this->magicWordFactory = $magicWordFactory; $this->contLang = $contLang; $this->urlProtocols = $urlProtocols; $this->specialPageFactory = $spFactory; $this->linkRendererFactory = $linkRendererFactory; $this->nsInfo = $nsInfo; $this->logger = $logger; $this->badFileLookup = $badFileLookup; $this->languageConverterFactory = $languageConverterFactory; $this->hookContainer = $hookContainer; } /** * Creates a new parser * * @return Parser * @since 1.32 */ public function create() : Parser { self::$inParserFactory++; try { return new Parser( $this->svcOptions, $this->magicWordFactory, $this->contLang, $this, $this->urlProtocols, $this->specialPageFactory, $this->linkRendererFactory, $this->nsInfo, $this->logger, $this->badFileLookup, $this->languageConverterFactory, $this->hookContainer ); } finally { self::$inParserFactory--; } } }