phpmyadmin/libraries/entry_points/database/datadict.php
Maurício Meneghini Fauth a467581f65 Use the router for the database data dictionary page
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-08-05 18:48:18 -03:00

32 lines
658 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Renders data dictionary
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
use PhpMyAdmin\Controllers\Database\DataDictionaryController;
use PhpMyAdmin\Response;
use PhpMyAdmin\Util;
if (! defined('PHPMYADMIN')) {
exit;
}
global $containerBuilder;
Util::checkParameters(['db']);
/** @var Response $response */
$response = $containerBuilder->get(Response::class);
/** @var DataDictionaryController $controller */
$controller = $containerBuilder->get(DataDictionaryController::class);
$header = $response->getHeader();
$header->enablePrintView();
$response->addHTML($controller->index());