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:
parent
2f2c942282
commit
319057e33c
4
url.php
4
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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user