Krinkle has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/355610 )

Change subject: rdbms: Add compat alias for renamed LBFactory class
......................................................................

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
(cherry picked from commit 99c1f00377244c104ed1aa206b08dbb53e76e031)
---
M autoload.php
M includes/libs/rdbms/lbfactory/LBFactory.php
2 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/10/355610/1

diff --git a/autoload.php b/autoload.php
index f609ffc..446ff16 100644
--- a/autoload.php
+++ b/autoload.php
@@ -681,6 +681,7 @@
        '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 e8210c8..53d5ef4 100644
--- a/includes/libs/rdbms/lbfactory/LBFactory.php
+++ b/includes/libs/rdbms/lbfactory/LBFactory.php
@@ -577,3 +577,5 @@
                $this->destroy();
        }
 }
+
+class_alias( LBFactory::class, 'LBFactory' );

-- 
To view, visit https://gerrit.wikimedia.org/r/355610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I36426144491b976322c3c96c08a821300d3b4a46
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_29
Gerrit-Owner: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to