mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-11 16:58:14 +00:00
Hygiene: Move Popups.hooks into includes folder
Lets keep all extenion PHP files in one folder Change-Id: I225019b895df038c1d43a082ac4244053d0b96dd
This commit is contained in:
parent
6908b59ccf
commit
2988a6e620
|
@ -9,7 +9,7 @@
|
|||
"license-name": "GPL-2.0+",
|
||||
"type": "betafeatures",
|
||||
"AutoloadClasses": {
|
||||
"PopupsHooks": "Popups.hooks.php",
|
||||
"Popups\\PopupsHooks": "includes/PopupsHooks.php",
|
||||
"Popups\\PopupsContext": "includes/PopupsContext.php",
|
||||
"Popups\\PopupsGadgetsIntegration": "includes/PopupsGadgetsIntegration.php"
|
||||
},
|
||||
|
@ -18,25 +18,25 @@
|
|||
},
|
||||
"Hooks": {
|
||||
"GetBetaFeaturePreferences": [
|
||||
"PopupsHooks::onGetBetaPreferences"
|
||||
"Popups\\PopupsHooks::onGetBetaPreferences"
|
||||
],
|
||||
"BeforePageDisplay": [
|
||||
"PopupsHooks::onBeforePageDisplay"
|
||||
"Popups\\PopupsHooks::onBeforePageDisplay"
|
||||
],
|
||||
"ResourceLoaderTestModules": [
|
||||
"PopupsHooks::onResourceLoaderTestModules"
|
||||
"Popups\\PopupsHooks::onResourceLoaderTestModules"
|
||||
],
|
||||
"ResourceLoaderGetConfigVars": [
|
||||
"PopupsHooks::onResourceLoaderGetConfigVars"
|
||||
"Popups\\PopupsHooks::onResourceLoaderGetConfigVars"
|
||||
],
|
||||
"GetPreferences": [
|
||||
"PopupsHooks::onGetPreferences"
|
||||
"Popups\\PopupsHooks::onGetPreferences"
|
||||
],
|
||||
"UserGetDefaultOptions": [
|
||||
"PopupsHooks::onUserGetDefaultOptions"
|
||||
"Popups\\PopupsHooks::onUserGetDefaultOptions"
|
||||
],
|
||||
"MakeGlobalVariablesScript": [
|
||||
"PopupsHooks::onMakeGlobalVariablesScript"
|
||||
"Popups\\PopupsHooks::onMakeGlobalVariablesScript"
|
||||
]
|
||||
},
|
||||
"MessagesDirs": {
|
||||
|
|
|
@ -18,8 +18,18 @@
|
|||
* @file
|
||||
* @ingroup extensions
|
||||
*/
|
||||
use Popups\PopupsContext;
|
||||
namespace Popups;
|
||||
|
||||
use User;
|
||||
use OutputPage;
|
||||
use Skin;
|
||||
use ResourceLoader;
|
||||
|
||||
/**
|
||||
* Hooks definitions for Popups extension
|
||||
*
|
||||
* @package Popups
|
||||
*/
|
||||
class PopupsHooks {
|
||||
const PREVIEWS_PREFERENCES_SECTION = 'rendering/reading';
|
||||
|
||||
|
@ -119,8 +129,8 @@ class PopupsHooks {
|
|||
|
||||
$testModules['qunit']['ext.popups.tests.stubs'] = [
|
||||
'scripts' => [
|
||||
'tests/qunit/ext.popups/stubs/index.js',
|
||||
'tests/qunit/ext.popups/stubs/user.js',
|
||||
'../tests/qunit/ext.popups/stubs/index.js',
|
||||
'../tests/qunit/ext.popups/stubs/user.js',
|
||||
],
|
||||
'dependencies' => [
|
||||
'ext.popups', // The mw.popups is required.
|
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
require_once ( 'PopupsContextTestWrapper.php' );
|
||||
use Popups\PopupsContext;
|
||||
use Popups\PopupsHooks;
|
||||
|
||||
/**
|
||||
* Integration tests for Page Preview hooks
|
||||
|
|
Loading…
Reference in a new issue