Fixed url.php crashing because it was not loading the DatabaseInterface service

Signed-off-by: Mauro Valvano <valvano.m@live.it>
This commit is contained in:
Mauro Valvano 2019-08-17 18:50:16 +02:00 committed by William Desportes
parent 2f2c942282
commit 319057e33c
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -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();