mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
api: Rename php class behind action=titleblacklist
titleblacklist is not part of action=query (since a2f5ccd2
back in 2011)
and should not follow that naming schema.
No class alias as nobody needs to call the class directly
Change-Id: If57e5bd9291a894edf42835fed07d37cd8e8abed
This commit is contained in:
parent
184f6ccbf8
commit
ffc9986a95
|
@ -44,7 +44,7 @@
|
|||
}
|
||||
},
|
||||
"APIModules": {
|
||||
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiQueryTitleBlacklist"
|
||||
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiTitleBlacklist"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"TitleBlacklist": [
|
||||
|
|
|
@ -30,15 +30,15 @@ use Title;
|
|||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
||||
/**
|
||||
* Query module check a title against the blacklist
|
||||
* Module to check a title against the blacklist
|
||||
*
|
||||
* @ingroup API
|
||||
* @ingroup Extensions
|
||||
*/
|
||||
class ApiQueryTitleBlacklist extends ApiBase {
|
||||
class ApiTitleBlacklist extends ApiBase {
|
||||
|
||||
public function __construct( $query, $moduleName ) {
|
||||
parent::__construct( $query, $moduleName, 'tb' );
|
||||
public function __construct( $mainModule, $moduleName ) {
|
||||
parent::__construct( $mainModule, $moduleName, 'tb' );
|
||||
}
|
||||
|
||||
public function execute() {
|
|
@ -4,9 +4,9 @@ use MediaWiki\Extension\TitleBlacklist\TitleBlacklist;
|
|||
|
||||
/**
|
||||
* @group medium
|
||||
* @covers \MediaWiki\Extension\TitleBlacklist\Api\ApiQueryTitleBlacklist
|
||||
* @covers \MediaWiki\Extension\TitleBlacklist\Api\ApiTitleBlacklist
|
||||
*/
|
||||
class ApiQueryTitleBlacklistTest extends ApiTestCase {
|
||||
class ApiTitleBlacklistTest extends ApiTestCase {
|
||||
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
Loading…
Reference in a new issue