hookContainer = $hookContainer; $this->logger = $logger; $this->langFactory = $langFactory; $this->contentLang = $contentLang; $this->tidy = $tidy; $this->titleFactory = $titleFactory; } /** * Creates a pipeline of transformations to transform the content of the ParserOutput object from "parsed HTML" * to "output HTML" and returns it. * @internal * @return OutputTransformPipeline */ public function buildPipeline(): OutputTransformPipeline { return ( new OutputTransformPipeline() ) ->addStage( new ExtractBody( $this->logger ) ) ->addStage( new AddRedirectHeader() ) ->addStage( new RenderDebugInfo( $this->hookContainer ) ) ->addStage( new ExecutePostCacheTransformHooks( $this->hookContainer ) ) ->addStage( new AddWrapperDivClass( $this->langFactory, $this->contentLang ) ) ->addStage( new HandleSectionLinks( $this->titleFactory ) ) ->addStage( new HandleParsoidSectionLinks( $this->logger, $this->titleFactory ) ) ->addStage( new HandleTOCMarkers( $this->tidy ) ) ->addStage( new DeduplicateStyles() ) ->addStage( new ExpandToAbsoluteUrls() ) ->addStage( new HydrateHeaderPlaceholders() ); } }