devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/db_structure.php
2018-12-16 15:31:03 +01:00

39 lines
1011 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Database structure manipulation
*
* @package PhpMyAdmin
*/
use PhpMyAdmin\Controllers\Database\DatabaseStructureController;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Response;
use PhpMyAdmin\Util;
require_once 'libraries/common.inc.php';
require_once 'libraries/db_common.inc.php';
$container = Container::getDefaultContainer();
$container->factory(
'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
);
$container->alias(
'DatabaseStructureController',
'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
);
$container->set('PhpMyAdmin\Response', Response::getInstance());
$container->alias('response', 'PhpMyAdmin\Response');
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
'db' => $db,
);
/** @var DatabaseStructureController $controller */
$controller = $container->get(
'DatabaseStructureController',
$dependency_definitions
);
$controller->indexAction();