jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/359495 )
Change subject: Hygiene: Use ServiceWiringFiles extension.json property
......................................................................
Hygiene: Use ServiceWiringFiles extension.json property
Instead of MediaWikiServices::loadServiceWirings() use
ServiceWiringsFiles property inside extension.json
Change-Id: I1b77d9754a7ff43081ac8d95a1c4f3b0075e48b5
---
M extension.json
M includes/MobileFrontend.hooks.php
2 files changed, 3 insertions(+), 17 deletions(-)
Approvals:
jenkins-bot: Verified
Jdlrobson: Looks good to me, approved
diff --git a/extension.json b/extension.json
index 85ed322..ac6c493 100644
--- a/extension.json
+++ b/extension.json
@@ -1769,9 +1769,6 @@
],
"TitleSquidURLs": [
"MobileFrontendHooks::onTitleSquidURLs"
- ],
- "MediaWikiServices": [
- "MobileFrontendHooks::onMediaWikiServices"
]
},
"config": {
@@ -1906,5 +1903,8 @@
"MFLogWrappedInfoboxes": true,
"MFWatchlistEditCountThreshold": 10
},
+ "ServiceWiringFiles": [
+ "includes/ServiceWiring.php"
+ ],
"manifest_version": 1
}
diff --git a/includes/MobileFrontend.hooks.php
b/includes/MobileFrontend.hooks.php
index 9c70e21..88aeeda 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -1315,18 +1315,4 @@
// Set LESS importpath
$wgResourceLoaderLESSImportPaths[] = dirname( __DIR__ ) .
"/minerva.less/";
}
-
- /**
- * MediaWikiServices hook handler.
- *
- * For now, loads the <code>ServiceWiring.php</code> service wiring
file. As we add more
- * top-level services, that file may need to be split up.
- *
- * @param MediaWikiServices $services
- */
- public static function onMediaWikiServices( MediaWikiServices $services
) {
- $services->loadWiringFiles( [
- __DIR__ . '/ServiceWiring.php',
- ] );
- }
}
--
To view, visit https://gerrit.wikimedia.org/r/359495
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1b77d9754a7ff43081ac8d95a1c4f3b0075e48b5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Pmiazga <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits