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:
authorHugues Peccatte <hugues.peccatte@gmail.com>2019-06-10 23:35:34 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2019-06-15 22:40:21 +0300
commit1b5131863f555b96507d66213dcf4ec76509e129 (patch)
treec767fe701bc476b429bf285c8d8248916b736d58 /test/bootstrap-dist.php
parentf5b858c8da10b8fc4494620efc18d03b5ac2ab4e (diff)
Get rid of old container in DatabaseInterface
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r--test/bootstrap-dist.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php
index e8e64e53ca..1d3fd1f612 100644
--- a/test/bootstrap-dist.php
+++ b/test/bootstrap-dist.php
@@ -9,6 +9,7 @@ declare(strict_types=1);
use PhpMyAdmin\Config;
use PhpMyAdmin\DatabaseInterface;
+use PhpMyAdmin\Di\Container;
use PhpMyAdmin\LanguageManager;
use PhpMyAdmin\MoTranslator\Loader;
use PhpMyAdmin\Theme;
@@ -79,7 +80,9 @@ define('PMA_MAJOR_VERSION', $GLOBALS['PMA_Config']->get('PMA_MAJOR_VERSION'));
LanguageManager::getInstance()->getLanguage('en')->activate();
/* Load Database interface */
-DatabaseInterface::load();
+$oldContainer = Container::getDefaultContainer();
+$oldContainer->set(DatabaseInterface::class, DatabaseInterface::load());
+$oldContainer->alias('dbi', DatabaseInterface::class);
// Set proxy information from env, if available
$http_proxy = getenv('http_proxy');