resourceloader: Un-deprecate ClientHtml::setModuleStyles()
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 14 Jun 2018 22:09:52 +0000 (23:09 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 14 Jun 2018 22:15:59 +0000 (23:15 +0100)
This follows 80e5b160e0985, which introduced ClientHtml::setModuleScripts()
and setModuleStyles() with @deprecated marks. There was a vague intention
to remove both at some point.

The commit did not deprecate the related methods in OutputPage and ParserOutput.

The plan that eventually formed at T188689 was to keep methods relating to
"setModuleStyles" for the time being, and focus first on the removal of the
methods relating to "setModuleScripts". The latter since been properly
marked as deprecated and removal is scheduled for 1.33.

There is no current plan to deprecate/remove addModuleStyles
from OutputPage and ParserOutput. As such, the internal helper method
that makes those possible, probably shouldn't me marked as deprecated.

Bug: T188689
Change-Id: Ia36c057b73fe834bcbb2e3e8993d1a793a12ab72

includes/resourceloader/ResourceLoaderClientHtml.php

index b9ff732..20faf8b 100644 (file)
@@ -95,7 +95,6 @@ class ResourceLoaderClientHtml {
        /**
         * Ensure the styles of one or more modules are loaded.
         *
-        * @deprecated since 1.28
         * @param array $modules Array of module names
         */
        public function setModuleStyles( array $modules ) {