rdbms: Add compat alias for renamed LBFactory class
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 24 May 2017 11:27:37 +0000 (13:27 +0200)
committerKrinkle <krinklemail@gmail.com>
Wed, 24 May 2017 11:29:54 +0000 (11:29 +0000)
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
includes/libs/rdbms/lbfactory/LBFactory.php

index fbdee83..9bac689 100644 (file)
@@ -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',
index e8210c8..53d5ef4 100644 (file)
@@ -577,3 +577,5 @@ abstract class LBFactory implements ILBFactory {
                $this->destroy();
        }
 }
+
+class_alias( LBFactory::class, 'LBFactory' );