objectcache: Hard deprecate ObjectCache::getMainStashInstance()
authorDerick Alangi <alangiderick@gmail.com>
Tue, 2 Jul 2019 16:58:13 +0000 (17:58 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Tue, 2 Jul 2019 17:27:24 +0000 (18:27 +0100)
This method was soft deprecated in 1.28 and usage is no longer in core
except for FlaggedRevs ext (here in removed in patch I3ada0b53e8b2a6f118f).

Usage
=====

https://codesearch.wmflabs.org/search/?q=getMainStashInstance&i=nope&files=&repos=

Depends-On: I3ada0b53e8b2a6f118fae37e7fc644b187bf95f8
Change-Id: I3f06b3732f67b703cdc12ec5849b67067475cdda

includes/objectcache/ObjectCache.php

index c0adb51..e9853b1 100644 (file)
@@ -382,6 +382,7 @@ class ObjectCache {
         * @deprecated Since 1.28 Use MediaWikiServices::getInstance()->getMainObjectStash()
         */
        public static function getMainStashInstance() {
+               wfDeprecated( __METHOD__, '1.28' );
                return MediaWikiServices::getInstance()->getMainObjectStash();
        }