Continue refactoring db tracking
[phpmyadmin.git] / db_structure.php
blob9d24d0d780909eefc274c6cba3a9503399dd78c5
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 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');
19 $container->alias(
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(
26 'db' => $db,
27 'url_query' => &$GLOBALS['url_query'],
28 'pos' => $pos,
29 'db_is_system_schema' => $db_is_system_schema,
30 'num_tables' => $num_tables,
31 'total_num_tables' => $total_num_tables,
32 'tables' => $tables,
35 /** @var Controllers\DatabaseStructureController $controller */
36 $controller = $container->get('DatabaseStructureController', $dependency_definitions);
37 $controller->indexAction();