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:
Umherirrender 2023-07-04 22:34:57 +02:00
parent 184f6ccbf8
commit ffc9986a95
3 changed files with 7 additions and 7 deletions

View file

@ -44,7 +44,7 @@
}
},
"APIModules": {
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiQueryTitleBlacklist"
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiTitleBlacklist"
},
"MessagesDirs": {
"TitleBlacklist": [

View file

@ -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() {

View file

@ -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();