config = $config; $this->hookContainer = $hookContainer; $this->contentLanguage = $contentLanguage; $this->namespaceInfo = $namespaceInfo; $this->titleFactory = $titleFactory; $this->wikiPageFactory = $wikiPageFactory; $this->uploadRevisionImporter = $uploadRevisionImporter; $this->permissionManager = $permissionManager; $this->contentHandlerFactory = $contentHandlerFactory; $this->slotRoleRegistry = $slotRoleRegistry; } /** * @param ImportSource $source * * @return WikiImporter */ public function getWikiImporter( ImportSource $source ): WikiImporter { return new WikiImporter( $source, $this->config, $this->hookContainer, $this->contentLanguage, $this->namespaceInfo, $this->titleFactory, $this->wikiPageFactory, $this->uploadRevisionImporter, $this->permissionManager, $this->contentHandlerFactory, $this->slotRoleRegistry ); } }