Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2019-06-17 21:02:08 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2019-06-17 21:02:08 +0300
commit7ef47312db8baf09a1c44782a618493bee554442 (patch)
tree5e21a0e7fe6ae5a882439648ba1dff353ebe320e /test/bootstrap-dist.php
parent5c519cc819b0c220a53942192f727a71708e74b8 (diff)
Remove remaining calls to old DI container
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r--test/bootstrap-dist.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php
index 1d3fd1f612..34901a50b9 100644
--- a/test/bootstrap-dist.php
+++ b/test/bootstrap-dist.php
@@ -9,7 +9,6 @@ declare(strict_types=1);
use PhpMyAdmin\Config;
use PhpMyAdmin\DatabaseInterface;
-use PhpMyAdmin\Di\Container;
use PhpMyAdmin\LanguageManager;
use PhpMyAdmin\MoTranslator\Loader;
use PhpMyAdmin\Theme;
@@ -80,9 +79,7 @@ define('PMA_MAJOR_VERSION', $GLOBALS['PMA_Config']->get('PMA_MAJOR_VERSION'));
LanguageManager::getInstance()->getLanguage('en')->activate();
/* Load Database interface */
-$oldContainer = Container::getDefaultContainer();
-$oldContainer->set(DatabaseInterface::class, DatabaseInterface::load());
-$oldContainer->alias('dbi', DatabaseInterface::class);
+$GLOBALS['dbi'] = DatabaseInterface::load();
// Set proxy information from env, if available
$http_proxy = getenv('http_proxy');