2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 declare(strict_types
=1);
10 use PhpMyAdmin\Controllers\Server\SqlController
;
11 use PhpMyAdmin\DatabaseInterface
;
12 use PhpMyAdmin\Response
;
13 use PhpMyAdmin\SqlQueryForm
;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
19 require_once ROOT_PATH
. 'libraries/common.inc.php';
21 /** @var Response $response */
22 $response = $containerBuilder->get(Response
::class);
24 /** @var DatabaseInterface $dbi */
25 $dbi = $containerBuilder->get(DatabaseInterface
::class);
27 /** @var SqlController $controller */
28 $controller = $containerBuilder->get(SqlController
::class);
30 /** @var SqlQueryForm $sqlQueryForm */
31 $sqlQueryForm = $containerBuilder->get('sql_query_form');
33 $header = $response->getHeader();
34 $scripts = $header->getScripts();
35 $scripts->addFile('makegrid.js');
36 $scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
37 $scripts->addFile('vendor/stickyfill.min.js');
38 $scripts->addFile('sql.js');
40 $response->addHTML($controller->index($sqlQueryForm));