mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-24 06:04:05 +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": {
|
"APIModules": {
|
||||||
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiQueryTitleBlacklist"
|
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiTitleBlacklist"
|
||||||
},
|
},
|
||||||
"MessagesDirs": {
|
"MessagesDirs": {
|
||||||
"TitleBlacklist": [
|
"TitleBlacklist": [
|
||||||
|
|
|
@ -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() {
|
|
@ -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();
|
Loading…
Reference in a new issue