From: Derick Alangi Date: Tue, 2 Jul 2019 16:58:13 +0000 (+0100) Subject: objectcache: Hard deprecate ObjectCache::getMainStashInstance() X-Git-Tag: 1.34.0-rc.0~1203^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=f415b57749ed551c445a5d97289b1275486e5216;p=lhc%2Fweb%2Fwiklou.git objectcache: Hard deprecate ObjectCache::getMainStashInstance() 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 --- diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index c0adb51860..e9853b176e 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -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(); }