The SkinFactory supports the creation of skins through a factory function but does not offer the option to allow the creation of skins with services injected. Given that the SkinFactory already uses the same pattern as SpecialPageFactory, which was previously altered to allow services to be injected when creating special pages (T222388), the same adjustment can be made to allow the registration of Skins with ObjectFactory spec. This delegates the actual object creation of Skin objects to ObjectFactory. ObjectFactory supports providing a callable as spec, making the change backwards compatible.
Customize query in gerrit
|mediawiki/core||master||+148 -55||Support the creation of Skins with services injected|