aboutsummaryrefslogtreecommitdiffstats
path: root/includes/cache
diff options
context:
space:
mode:
authorAlexander Vorwerk <alec@vc-celle.de>2021-05-03 15:08:33 +0200
committerZabe <alec@vc-celle.de>2021-05-03 14:11:21 +0000
commit596344db7a3b76e7e82cc881866ebcc189a9fdb3 (patch)
tree49fb11332c96398fa936fbaea74a25d88619385d /includes/cache
parente8ba76545ec315dda4cd1c3434e6bfcba89c20a1 (diff)
downloadmediawikicore-596344db7a3b76e7e82cc881866ebcc189a9fdb3.tar.gz
mediawikicore-596344db7a3b76e7e82cc881866ebcc189a9fdb3.zip
Hard deprecate MessageCache::singleton()
deprecated since 1.34 and unused. Bug: T249031 Change-Id: I6003c56f07469ffe796ccb415bb4d1e5ff8993a9
Diffstat (limited to 'includes/cache')
-rw-r--r--includes/cache/MessageCache.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php
index 3a14c1e8067e..d2e257e4e7f0 100644
--- a/includes/cache/MessageCache.php
+++ b/includes/cache/MessageCache.php
@@ -126,11 +126,14 @@ class MessageCache implements LoggerAwareInterface {
/**
* Get the singleton instance of this class
*
- * @deprecated in 1.34 inject an instance of this class instead of using global state
+ * @deprecated in 1.34, hard depreacted in 1.37
+ * Inject an instance of this class instead of using global state
+ *
* @since 1.18
* @return MessageCache
*/
public static function singleton() {
+ wfDeprecated( __METHOD__, '1.34' );
return MediaWikiServices::getInstance()->getMessageCache();
}