mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Merge "Move class files to includes/"
This commit is contained in:
commit
8a3530acc7
|
@ -1,7 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* VectorHooks.php
|
||||
*/
|
||||
|
||||
namespace Vector;
|
||||
|
||||
use OutputPage;
|
||||
use SkinTemplate;
|
||||
use SkinVector;
|
||||
|
||||
/**
|
||||
* Hook handlers for Vector skin.
|
||||
|
@ -9,8 +12,7 @@
|
|||
* Hook handler method names should be in the form of:
|
||||
* on<HookName>()
|
||||
*/
|
||||
|
||||
class VectorHooks {
|
||||
class Hooks {
|
||||
/**
|
||||
* BeforePageDisplayMobile hook handler
|
||||
*
|
10
skin.json
10
skin.json
|
@ -25,14 +25,14 @@
|
|||
]
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"VectorHooks": "VectorHooks.php",
|
||||
"SkinVector": "SkinVector.php",
|
||||
"VectorTemplate": "VectorTemplate.php",
|
||||
"Vector\\ResourceLoaderLessModule": "ResourceLoaderLessModule.php"
|
||||
"Vector\\Hooks": "includes/Hooks.php",
|
||||
"SkinVector": "includes/SkinVector.php",
|
||||
"VectorTemplate": "includes/VectorTemplate.php",
|
||||
"Vector\\ResourceLoaderLessModule": "includes/ResourceLoaderLessModule.php"
|
||||
},
|
||||
"Hooks": {
|
||||
"BeforePageDisplayMobile": [
|
||||
"VectorHooks::onBeforePageDisplayMobile"
|
||||
"Vector\\Hooks::onBeforePageDisplayMobile"
|
||||
]
|
||||
},
|
||||
"@note": "When modifying skins.vector.styles definition, make sure the installer still works",
|
||||
|
|
Loading…
Reference in a new issue