parsoid = $parsoid; $this->parsoidSettings = $parsoidSettings; $this->configFactory = $configFactory; $this->contentHandlerFactory = $contentHandlerFactory; $this->siteConfig = $siteConfig; $this->titleFactory = $titleFactory; $this->languageConverterFactory = $languageConverterFactory; $this->languageFactory = $languageFactory; } /** * Get the HTML transform object for a given page and specified * modified HTML. * * @param string $modifiedHTML * @param PageIdentity $page * * @return HtmlToContentTransform */ public function getHtmlToContentTransform( string $modifiedHTML, PageIdentity $page ) { return new HtmlToContentTransform( $modifiedHTML, $page, $this->parsoid, $this->parsoidSettings, $this->configFactory, $this->contentHandlerFactory ); } /** * Get a language variant converter object for a given page * * @param PageIdentity $page * * @return LanguageVariantConverter */ public function getLanguageVariantConverter( PageIdentity $page ): LanguageVariantConverter { return new LanguageVariantConverter( $page, $this->configFactory, $this->parsoid, $this->siteConfig, $this->titleFactory, $this->languageConverterFactory, $this->languageFactory ); } }