options = $options; $this->revisionLookup = $revisionLookup; $this->titleFormatter = $titleFormatter; $this->pageLookup = $pageLookup; $this->parsoidOutputStash = $parsoidOutputStash; $this->stats = $statsDataFactory; $this->parsoidOutputAccess = $parsoidOutputAccess; $this->htmlTransformFactory = $htmlTransformFactory; $this->contentHandlerFactory = $contentHandlerFactory; $this->languageFactory = $languageFactory; } public function newRevisionContentHelper(): RevisionContentHelper { return new RevisionContentHelper( $this->options, $this->revisionLookup, $this->titleFormatter, $this->pageLookup ); } public function newPageContentHelper(): PageContentHelper { return new PageContentHelper( $this->options, $this->revisionLookup, $this->titleFormatter, $this->pageLookup ); } public function newHtmlOutputRendererHelper(): HtmlOutputRendererHelper { return new HtmlOutputRendererHelper( $this->parsoidOutputStash, $this->stats, $this->parsoidOutputAccess, $this->htmlTransformFactory, $this->contentHandlerFactory, $this->languageFactory ); } public function newHtmlMessageOutputHelper(): HtmlMessageOutputHelper { return new HtmlMessageOutputHelper(); } public function newHtmlInputTransformHelper( $envOptions = [] ): HtmlInputTransformHelper { return new HtmlInputTransformHelper( $this->stats, $this->htmlTransformFactory, $this->parsoidOutputStash, $this->parsoidOutputAccess, $envOptions ); } } /** @deprecated since 1.40, remove in 1.41 */ class_alias( PageRestHelperFactory::class, "MediaWiki\\Rest\\Handler\\PageRestHelperFactory" );