Merge "Remove global namespaced LBFactory"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 21 Sep 2018 23:40:45 +0000 (23:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 21 Sep 2018 23:40:45 +0000 (23:40 +0000)
RELEASE-NOTES-1.32
autoload.php
includes/libs/rdbms/lbfactory/LBFactory.php
tests/phpunit/includes/db/LBFactoryTest.php

index b30a568..fb2829b 100644 (file)
@@ -314,6 +314,8 @@ because of Phabricator reports.
 * $wgSpecialPages no longer accepts array syntax, deprecated since 1.18.
 * The MailAddress constructor can no longer be called with a User object,
   behaviour which has been deprecated since 1.24.
+* LBFactory, deprecated since 1.28, has been removed. Instead, use
+  Wikimedia\Rdbms\LBFactory.
 
 === Deprecations in 1.32 ===
 * HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
index 67285d0..96a7dc3 100644 (file)
@@ -717,7 +717,6 @@ $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 e736ab9..1612f41 100644 (file)
@@ -728,8 +728,3 @@ abstract class LBFactory implements ILBFactory {
                $this->destroy();
        }
 }
-
-/**
- * @deprecated since 1.29
- */
-class_alias( LBFactory::class, 'LBFactory' );
index a0bc038..1616139 100644 (file)
@@ -34,13 +34,14 @@ use Wikimedia\Rdbms\DatabaseDomain;
 
 /**
  * @group Database
+ * @covers \Wikimedia\Rdbms\LBFactory
  * @covers \Wikimedia\Rdbms\LBFactorySimple
  * @covers \Wikimedia\Rdbms\LBFactoryMulti
  */
 class LBFactoryTest extends MediaWikiTestCase {
 
        /**
-        * @covers MWLBFactory::getLBFactoryClass
+        * @covers MWLBFactory::getLBFactoryClass()
         * @dataProvider getLBFactoryClassProvider
         */
        public function testGetLBFactoryClass( $expected, $deprecated ) {
@@ -76,8 +77,8 @@ class LBFactoryTest extends MediaWikiTestCase {
        }
 
        /**
-        * @covers LBFactory::getLocalDomainID()
-        * @covers LBFactory::resolveDomainID()
+        * @covers \Wikimedia\Rdbms\LBFactory::getLocalDomainID()
+        * @covers \Wikimedia\Rdbms\LBFactory::resolveDomainID()
         */
        public function testLBFactorySimpleServer() {
                global $wgDBserver, $wgDBname, $wgDBuser, $wgDBpassword, $wgDBtype, $wgSQLiteDataDir;