From 99c1f00377244c104ed1aa206b08dbb53e76e031 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 24 May 2017 13:27:37 +0200 Subject: [PATCH] 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 --- autoload.php | 1 + includes/libs/rdbms/lbfactory/LBFactory.php | 2 ++ 2 files changed, 3 insertions(+) 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' ); -- 2.20.1