Merge "registration: Deprecate ExtensionRegistry->load() in favor of ->queue()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 21 Apr 2019 20:18:36 +0000 (20:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 21 Apr 2019 20:18:36 +0000 (20:18 +0000)
RELEASE-NOTES-1.34
includes/registration/ExtensionRegistry.php

index 199b82c..901cd01 100644 (file)
@@ -106,6 +106,8 @@ because of Phabricator reports.
 
 === Deprecations in 1.34 ===
 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
+* ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
+  Instead, use ->queue().
 * …
 
 === Other changes in 1.34 ===
index 2607e5a..fb89731 100644 (file)
@@ -413,10 +413,12 @@ class ExtensionRegistry {
         *
         * If some extensions are already queued, this will load
         * those as well.
-        *
+        * TODO: Remove in MediaWiki 1.35
+        * @deprecated since 1.34, use ExtensionRegistry->queue() instead
         * @param string $path Absolute path to the JSON file
         */
        public function load( $path ) {
+               wfDeprecated( __METHOD__, '1.34' );
                $this->loadFromQueue(); // First clear the queue
                $this->queue( $path );
                $this->loadFromQueue();