Legoktm has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/372912 )
Change subject: Namespace this extension
......................................................................
Namespace this extension
Change-Id: I1ba4e335fff4982dcefbb5f57df260319f54f050
---
M BoilerPlate.hooks.php
M extension.json
M specials/SpecialHelloWorld.php
3 files changed, 12 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BoilerPlate
refs/changes/12/372912/1
diff --git a/BoilerPlate.hooks.php b/BoilerPlate.hooks.php
index d166e90..375dbf9 100644
--- a/BoilerPlate.hooks.php
+++ b/BoilerPlate.hooks.php
@@ -1,4 +1,7 @@
<?php
+
+namespace MediaWiki\Extensions\BoilerPlate;
+
/**
* Hooks for BoilerPlate extension
*
@@ -6,7 +9,7 @@
* @ingroup Extensions
*/
-class BoilerPlateHooks {
+class Hooks {
/**
* Hook: NameOfHook
diff --git a/extension.json b/extension.json
index 928541b..531f823 100644
--- a/extension.json
+++ b/extension.json
@@ -9,8 +9,8 @@
"license-name": "MIT",
"type": "other",
"AutoloadClasses": {
- "BoilerPlateHooks": "BoilerPlate.hooks.php",
- "SpecialHelloWorld": "specials/SpecialHelloWorld.php"
+ "MediaWiki\\Extensions\\BoilerPlate\\Hooks":
"BoilerPlate.hooks.php",
+ "MediaWiki\\Extensions\\BoilerPlate\\SpecialHelloWorld":
"specials/SpecialHelloWorld.php"
},
"ConfigRegistry": {
"boilerplate": "GlobalVarConfig::newInstance"
@@ -26,7 +26,7 @@
},
"Hooks": {
"NameOfHook": [
- "BoilerPlateHooks::onNameOfHook"
+
"MediaWiki\\Extensions\\BoilerPlate\\Hooks::onNameOfHook"
]
},
"MessagesDirs": {
@@ -52,7 +52,7 @@
"remoteExtPath": "BoilerPlate/modules"
},
"SpecialPages": {
- "HelloWorld": "SpecialHelloWorld"
+ "HelloWorld":
"MediaWiki\\Extensions\\BoilerPlate\\SpecialHelloWorld"
},
"manifest_version": 2
}
diff --git a/specials/SpecialHelloWorld.php b/specials/SpecialHelloWorld.php
index 58d4b8a..ca2cedb 100644
--- a/specials/SpecialHelloWorld.php
+++ b/specials/SpecialHelloWorld.php
@@ -6,7 +6,11 @@
* @ingroup Extensions
*/
+namespace MediaWiki\Extensions\BoilerPlate;
+
+use HTMLForm;
use MediaWiki\MediaWikiServices;
+use SpecialPage;
class SpecialHelloWorld extends SpecialPage {
public function __construct() {
--
To view, visit https://gerrit.wikimedia.org/r/372912
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ba4e335fff4982dcefbb5f57df260319f54f050
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BoilerPlate
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits