mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-23 22:52:22 +00:00
39 lines
1011 B
PHP
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();
|