Merge #15437 - Fixed url.php crashing because it's not loading the DatabaseInterface service
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
e844368b46
4
url.php
4
url.php
@ -10,6 +10,7 @@ declare(strict_types=1);
|
|||||||
use PhpMyAdmin\Core;
|
use PhpMyAdmin\Core;
|
||||||
use PhpMyAdmin\Response;
|
use PhpMyAdmin\Response;
|
||||||
use PhpMyAdmin\Sanitize;
|
use PhpMyAdmin\Sanitize;
|
||||||
|
use PhpMyAdmin\DatabaseInterface;
|
||||||
|
|
||||||
if (! defined('ROOT_PATH')) {
|
if (! defined('ROOT_PATH')) {
|
||||||
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||||
@ -21,6 +22,9 @@ if (! defined('ROOT_PATH')) {
|
|||||||
define('PMA_MINIMUM_COMMON', true);
|
define('PMA_MINIMUM_COMMON', true);
|
||||||
require_once ROOT_PATH . 'libraries/common.inc.php';
|
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
|
// Only output the http headers
|
||||||
$response = Response::getInstance();
|
$response = Response::getInstance();
|
||||||
$response->getHeader()->sendHttpHeaders();
|
$response->getHeader()->sendHttpHeaders();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user