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": { "APIModules": {
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiQueryTitleBlacklist" "titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiTitleBlacklist"
}, },
"MessagesDirs": { "MessagesDirs": {
"TitleBlacklist": [ "TitleBlacklist": [

View file

@ -30,15 +30,15 @@ use Title;
use Wikimedia\ParamValidator\ParamValidator; use Wikimedia\ParamValidator\ParamValidator;
/** /**
* Query module check a title against the blacklist * Module to check a title against the blacklist
* *
* @ingroup API * @ingroup API
* @ingroup Extensions * @ingroup Extensions
*/ */
class ApiQueryTitleBlacklist extends ApiBase { class ApiTitleBlacklist extends ApiBase {
public function __construct( $query, $moduleName ) { public function __construct( $mainModule, $moduleName ) {
parent::__construct( $query, $moduleName, 'tb' ); parent::__construct( $mainModule, $moduleName, 'tb' );
} }
public function execute() { public function execute() {

View file

@ -4,9 +4,9 @@ use MediaWiki\Extension\TitleBlacklist\TitleBlacklist;
/** /**
* @group medium * @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 { protected function setUp(): void {
parent::setUp(); parent::setUp();