devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8/db_structure.php

39 lines
1011 B
PHP
Raw Normal View History

2016-10-22 14:57:10 +00:00
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Database structure manipulation
*
* @package PhpMyAdmin
*/
2018-04-14 09:18:00 +00:00
use PhpMyAdmin\Controllers\Database\DatabaseStructureController;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Response;
use PhpMyAdmin\Util;
2016-10-22 14:57:10 +00:00
require_once 'libraries/common.inc.php';
require_once 'libraries/db_common.inc.php';
2018-04-14 09:18:00 +00:00
$container = Container::getDefaultContainer();
$container->factory(
2018-04-14 09:18:00 +00:00
'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
);
2016-10-22 14:57:10 +00:00
$container->alias(
'DatabaseStructureController',
2018-04-14 09:18:00 +00:00
'PhpMyAdmin\Controllers\Database\DatabaseStructureController'
2016-10-22 14:57:10 +00:00
);
2018-04-14 09:18:00 +00:00
$container->set('PhpMyAdmin\Response', Response::getInstance());
$container->alias('response', 'PhpMyAdmin\Response');
2016-10-22 14:57:10 +00:00
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
'db' => $db,
);
/** @var DatabaseStructureController $controller */
$controller = $container->get(
'DatabaseStructureController',
$dependency_definitions
);
$controller->indexAction();