db_structure.php 1011 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Database structure manipulation
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Controllers\Database\DatabaseStructureController;
  9. use PhpMyAdmin\Di\Container;
  10. use PhpMyAdmin\Response;
  11. use PhpMyAdmin\Util;
  12. require_once 'libraries/common.inc.php';
  13. require_once 'libraries/db_common.inc.php';
  14. $container = Container::getDefaultContainer();
  15. $container->factory(
  16. 'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
  17. );
  18. $container->alias(
  19. 'DatabaseStructureController',
  20. 'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
  21. );
  22. $container->set('PhpMyAdmin\Response', Response::getInstance());
  23. $container->alias('response', 'PhpMyAdmin\Response');
  24. /* Define dependencies for the concerned controller */
  25. $dependency_definitions = array(
  26. 'db' => $db,
  27. );
  28. /** @var DatabaseStructureController $controller */
  29. $controller = $container->get(
  30. 'DatabaseStructureController',
  31. $dependency_definitions
  32. );
  33. $controller->indexAction();