Merge remote-tracking branch 'origin/master'
[phpmyadmin.git] / db_structure.php
blob2bb9ec146aae8756a26066225b974aeb799c6ba4
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database structure manipulation
6 * @package PhpMyAdmin
7 */
9 namespace PMA;
11 use PMA\libraries\controllers\database\DatabaseStructureController;
12 use PMA\libraries\Response;
13 use PMA\libraries\Util;
15 require_once 'libraries/common.inc.php';
16 require_once 'libraries/db_common.inc.php';
18 $container = libraries\di\Container::getDefaultContainer();
19 $container->factory(
20 'PMA\libraries\controllers\database\DatabaseStructureController'
22 $container->alias(
23 'DatabaseStructureController',
24 'PMA\libraries\controllers\database\DatabaseStructureController'
26 $container->set('PMA\libraries\Response', Response::getInstance());
27 $container->alias('response', 'PMA\libraries\Response');
29 /* Define dependencies for the concerned controller */
30 $dependency_definitions = array(
31 'db' => $db,
32 'url_query' => &$GLOBALS['url_query'],
35 /** @var DatabaseStructureController $controller */
36 $controller = $container->get(
37 'DatabaseStructureController',
38 $dependency_definitions
40 $controller->indexAction();