From: Timo Tijhof Date: Wed, 24 May 2017 11:27:37 +0000 (+0200) Subject: rdbms: Add compat alias for renamed LBFactory class X-Git-Tag: 1.31.0-rc.0~3153^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=99c1f00377244c104ed1aa206b08dbb53e76e031;p=lhc%2Fweb%2Fwiklou.git rdbms: Add compat alias for renamed LBFactory class This was renamed to be namespaced, but there are still some uses that justify having an alias, similar to how we did with most other classes in rdbms that were renamed in 1.29. Bug: T164896 Change-Id: I36426144491b976322c3c96c08a821300d3b4a46 --- diff --git a/autoload.php b/autoload.php index fbdee83ba8..9bac6899af 100644 --- a/autoload.php +++ b/autoload.php @@ -684,6 +684,7 @@ $wgAutoloadLocalClasses = [ 'JsonContentHandler' => __DIR__ . '/includes/content/JsonContentHandler.php', 'KkConverter' => __DIR__ . '/languages/classes/LanguageKk.php', 'KuConverter' => __DIR__ . '/languages/classes/LanguageKu.php', + 'LBFactory' => __DIR__ . '/includes/libs/rdbms/lbfactory/LBFactory.php', 'LCStore' => __DIR__ . '/includes/cache/localisation/LCStore.php', 'LCStoreCDB' => __DIR__ . '/includes/cache/localisation/LCStoreCDB.php', 'LCStoreDB' => __DIR__ . '/includes/cache/localisation/LCStoreDB.php', diff --git a/includes/libs/rdbms/lbfactory/LBFactory.php b/includes/libs/rdbms/lbfactory/LBFactory.php index e8210c8552..53d5ef4f40 100644 --- a/includes/libs/rdbms/lbfactory/LBFactory.php +++ b/includes/libs/rdbms/lbfactory/LBFactory.php @@ -577,3 +577,5 @@ abstract class LBFactory implements ILBFactory { $this->destroy(); } } + +class_alias( LBFactory::class, 'LBFactory' );