2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Database structure manipulation
11 require_once 'libraries/common.inc.php';
12 require_once 'libraries/db_common.inc.php';
13 require_once 'libraries/db_info.inc.php';
14 require_once 'libraries/di/Container.class.php';
15 require_once 'libraries/controllers/DatabaseStructureController.class.php';
17 $container = DI\Container
::getDefaultContainer();
18 $container->factory('PMA\Controllers\DatabaseStructureController');
20 'DatabaseStructureController', 'PMA\Controllers\DatabaseStructureController'
23 global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables;
24 /* Define dependencies for the concerned controller */
25 $dependency_definitions = array(
27 'url_query' => &$GLOBALS['url_query'],
29 'db_is_system_schema' => $db_is_system_schema,
30 'num_tables' => $num_tables,
31 'total_num_tables' => $total_num_tables,
35 /** @var Controllers\DatabaseStructureController $controller */
36 $controller = $container->get('DatabaseStructureController', $dependency_definitions);
37 $controller->indexAction();