Rename files (#10)

This commit is contained in:
Universal Omega 2021-09-12 10:42:37 -06:00 committed by GitHub
parent f02f247e64
commit f3d702496e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 14 deletions

View file

@ -27,7 +27,7 @@
"PortableInfobox": "i18n"
},
"ExtensionMessagesFiles": {
"PortableInfoboxAliases": "includes/PortableInfobox.alias.php"
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php"
},
"ResourceModules": {
"ext.PortableInfobox.scripts": {
@ -50,7 +50,7 @@
"remoteExtPath": "PortableInfobox"
},
"AutoloadClasses": {
"PortableInfoboxHooks": "includes/PortableInfobox.hooks.php",
"PortableInfoboxHooks": "includes/PortableInfoboxHooks.php",
"PortableInfoboxDataService": "includes/services/PortableInfoboxDataService.php",
"PortableInfoboxRenderService": "includes/services/PortableInfoboxRenderService.php",
"PortableInfoboxErrorRenderService": "includes/services/PortableInfoboxErrorRenderService.php",
@ -84,8 +84,8 @@
"PortableInfoboxParserTagController": "includes/controllers/PortableInfoboxParserTagController.php",
"ApiPortableInfobox": "includes/controllers/ApiPortableInfobox.php",
"ApiQueryPortableInfobox": "includes/controllers/ApiQueryPortableInfobox.php",
"ApiQueryAllinfoboxes": "includes/controllers/ApiQueryAllinfoboxes.php",
"AllinfoboxesQueryPage": "includes/querypage/AllinfoboxesQueryPage.php"
"ApiQueryAllInfoboxes": "includes/controllers/ApiQueryAllInfoboxes.php",
"AllInfoboxesQueryPage": "includes/querypage/AllInfoboxesQueryPage.php"
},
"Hooks": {
"ParserFirstCallInit": "PortableInfoboxParserTagController::parserTagInit",
@ -97,7 +97,7 @@
"ResourceLoaderRegisterModules": "PortableInfoboxHooks::onResourceLoaderRegisterModules"
},
"SpecialPages": {
"AllInfoboxes": "AllinfoboxesQueryPage"
"AllInfoboxes": "AllInfoboxesQueryPage"
},
"APIModules": {
"infobox": "ApiPortableInfobox"
@ -106,7 +106,7 @@
"infobox": "ApiQueryPortableInfobox"
},
"APIListModules": {
"allinfoboxes": "ApiQueryAllinfoboxes"
"allinfoboxes": "ApiQueryAllInfoboxes"
},
"manifest_version": 1
}

View file

@ -1,9 +1,4 @@
<?php
/**
* Aliases for the PortableInfobox extension.
*
* @ingroup PortableInfobox
*/
$specialPageAliases = [];

View file

@ -2,7 +2,6 @@
use MediaWiki\MediaWikiServices;
// phpcs:ignore MediaWiki.Files.ClassMatchesFilename.NotMatch
class PortableInfoboxHooks {
public static function onWgQueryPages( array &$queryPages = [] ) {

View file

@ -2,9 +2,10 @@
use MediaWiki\MediaWikiServices;
class ApiQueryAllinfoboxes extends ApiQueryBase {
class ApiQueryAllInfoboxes extends ApiQueryBase {
private const CACHE_TTL = 86400;
public const MCACHE_KEY = 'allinfoboxes-list';
public function execute() {

View file

@ -1,6 +1,6 @@
<?php
class AllinfoboxesQueryPage extends PageQueryPage {
class AllInfoboxesQueryPage extends PageQueryPage {
private const ALL_INFOBOXES_TYPE = 'AllInfoboxes';