From 319057e33c97edffecb08b436ee403e8db70a5b4 Mon Sep 17 00:00:00 2001 From: Mauro Valvano Date: Sat, 17 Aug 2019 18:50:16 +0200 Subject: [PATCH] Fixed url.php crashing because it was not loading the DatabaseInterface service Signed-off-by: Mauro Valvano --- url.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/url.php b/url.php index dc3dabcc76..4c9e0f0197 100644 --- a/url.php +++ b/url.php @@ -10,6 +10,7 @@ declare(strict_types=1); use PhpMyAdmin\Core; use PhpMyAdmin\Response; use PhpMyAdmin\Sanitize; +use PhpMyAdmin\DatabaseInterface; if (! defined('ROOT_PATH')) { define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR); @@ -21,6 +22,9 @@ if (! defined('ROOT_PATH')) { define('PMA_MINIMUM_COMMON', true); require_once ROOT_PATH . 'libraries/common.inc.php'; +// Load database service because services.yaml is not available here +$containerBuilder->set(DatabaseInterface::class, DatabaseInterface::load()); + // Only output the http headers $response = Response::getInstance(); $response->getHeader()->sendHttpHeaders();