MediaWiki master
MediaWiki\Import\WikiImporterFactory Class Reference

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)
 

Detailed Description

Factory service for WikiImporter instances.

Since
1.37

Definition at line 25 of file WikiImporterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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.

Member Function Documentation

◆ getWikiImporter()

MediaWiki\Import\WikiImporterFactory::getWikiImporter ( ImportSource $source,
Authority $performer )
Parameters
ImportSource$source
Authority$performerAuthority 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.
Returns
WikiImporter

Definition at line 47 of file WikiImporterFactory.php.


The documentation for this class was generated from the following file: