diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2017-05-24 13:27:37 +0200 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2017-05-25 12:52:56 +0000 |
commit | c749bf6b05e5fd607b5eb4f86ba7bfcedc963816 (patch) | |
tree | b84fb66ff972e056c47d3a8a2e11456d13792130 | |
parent | 4c761cfd74a8cedc45b500cae8da677ba6718e05 (diff) |
rdbms: Add compat alias for renamed LBFactory class1.29.0-rc.0
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
(cherry picked from commit 99c1f00377244c104ed1aa206b08dbb53e76e031)
-rw-r--r-- | autoload.php | 1 | ||||
-rw-r--r-- | includes/libs/rdbms/lbfactory/LBFactory.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/autoload.php b/autoload.php index f609ffc7c13a..446ff1694c12 100644 --- a/autoload.php +++ b/autoload.php @@ -681,6 +681,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 e8210c855240..53d5ef4f40b8 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' ); |