mediawiki-skins-Vector/includes
Sam Smith b46751d4ed hooks: Don't use SkinVersionLookup directly
The feature manager abstracts away how a feature is enabled from the
consumer of that feature. Accordingly, replace direct instantiation of
SkinVersionLookup with usage of the Vector.FeatureManager service.

Supporting changes:

- Add Vector\VectorServices, a simple wrapper around
  MediaWiki\MediaWikiServices that allows us to both document and
  type-hint services specific to Vector

- Add Vector\Hooks::isSkinVersionLegacy to minimise repetition

Additional changes:

- Make the MakeGlobalVariablesScript hook handler return early if the
  user isn't using the Vector skin like the other hook handlers

Bug: T256100
Change-Id: I93b5ef39802323c7ac658af8fa7cc312fff68aa7
2020-08-18 11:40:48 +01:00
..
FeatureManagement documentation: Align @package annotations 2020-08-04 12:48:11 +01:00
templates Merge "Remove VectorBeforeFooter hook" 2020-08-13 22:36:09 +00:00
Constants.php Move the personal tools and search into header 2020-08-11 23:36:01 +00:00
Hooks.php hooks: Don't use SkinVersionLookup directly 2020-08-18 11:40:48 +01:00
ServiceWiring.php Merge "[fix] "Existing account only" skin version config" 2020-04-29 18:55:30 +00:00
SkinVector.php Merge "Remove VectorBeforeFooter hook" 2020-08-13 22:36:09 +00:00
SkinVersionLookup.php [fix] "Existing account only" skin version config 2020-04-29 18:36:03 +00:00
VectorServices.php hooks: Don't use SkinVersionLookup directly 2020-08-18 11:40:48 +01:00