From: Derick Alangi Date: Tue, 23 Apr 2019 15:42:33 +0000 (+0100) Subject: GlobalFunctions: Hard deprecate wfGetLBFactory() function X-Git-Tag: 1.34.0-rc.0~1898^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=commitdiff_plain;h=91a3f56eae6d34f8363948e94d639d7dd944b1d7;p=lhc%2Fweb%2Fwiklou.git GlobalFunctions: Hard deprecate wfGetLBFactory() function Usage of this function has almost disappeard from both core and all mediawiki extensions. Kill this function in MW 1.35. Depends-On: Id415d70aa0090c01ea04c3156aecd76caa8e83f8 Change-Id: I95f42b1631caf5ae026b9b7a3ced277bf9fa0608 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 1ac2f8389d..2497b0f86d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2660,10 +2660,12 @@ function wfGetLB( $wiki = false ) { * Get the load balancer factory object * * @deprecated since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead. + * TODO: Remove in MediaWiki 1.35 * * @return \Wikimedia\Rdbms\LBFactory */ function wfGetLBFactory() { + wfDeprecated( __METHOD__, '1.34' ); return MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); }