|
MediaWiki master
|
Factory service for WikiImporter instances. More...
Public Member Functions | |
| __construct (private readonly Config $config, private readonly HookContainer $hookContainer, private readonly Language $contentLanguage, private readonly NamespaceInfo $namespaceInfo, private readonly TitleFactory $titleFactory, private readonly WikiPageFactory $wikiPageFactory, private readonly UploadRevisionImporter $uploadRevisionImporter, private readonly IContentHandlerFactory $contentHandlerFactory, private readonly SlotRoleRegistry $slotRoleRegistry,) | |
| getWikiImporter (ImportSource $source, Authority $performer) | |
Factory service for WikiImporter instances.
Definition at line 25 of file WikiImporterFactory.php.
| MediaWiki\Import\WikiImporterFactory::__construct | ( | private readonly Config | $config, |
| private readonly HookContainer | $hookContainer, | ||
| private readonly Language | $contentLanguage, | ||
| private readonly NamespaceInfo | $namespaceInfo, | ||
| private readonly TitleFactory | $titleFactory, | ||
| private readonly WikiPageFactory | $wikiPageFactory, | ||
| private readonly UploadRevisionImporter | $uploadRevisionImporter, | ||
| private readonly IContentHandlerFactory | $contentHandlerFactory, | ||
| private readonly SlotRoleRegistry | $slotRoleRegistry ) |
Definition at line 26 of file WikiImporterFactory.php.
| MediaWiki\Import\WikiImporterFactory::getWikiImporter | ( | ImportSource | $source, |
| Authority | $performer ) |
| ImportSource | $source | |
| Authority | $performer | Authority used for permission checks only (to ensure that the user performing the import is allowed to edit the pages they're importing). To skip the checks, use UltimateAuthority. If you want to also log the import actions, see ImportReporter. |
Definition at line 47 of file WikiImporterFactory.php.