* Indicate whether a class is a service (to be found via MediaWikiServices) or a lower-level class for certain backend logic. * Indicate how to create / where to get instances of non-service classes, e.g. point to the relevant service. * Remove copy-pasta text in file docblock that is unrelated, and incorporate any relevant text into the class docblock instead. Change-Id: Ia3b9b8c22da4d7160c5e14ae6a6a7c9dca30e9db
22 lines
425 B
PHP
22 lines
425 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Page;
|
|
|
|
use MediaWiki\Permissions\Authority;
|
|
|
|
/**
|
|
* Service for page delete actions.
|
|
*
|
|
* Default implementation is MediaWiki\Page\PageCommandFactory.
|
|
*
|
|
* @since 1.37
|
|
*/
|
|
interface DeletePageFactory {
|
|
|
|
/**
|
|
* @param ProperPageIdentity $page
|
|
* @param Authority $deleter
|
|
* @return DeletePage
|
|
*/
|
|
public function newDeletePage( ProperPageIdentity $page, Authority $deleter ): DeletePage;
|
|
}
|