2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * handles creation of the chart
8 declare(strict_types
=1);
10 use PhpMyAdmin\Controllers\Table\TableChartController
;
11 use PhpMyAdmin\Di\Container
;
12 use PhpMyAdmin\Response
;
14 require_once 'libraries/common.inc.php';
16 $container = Container
::getDefaultContainer();
17 $container->factory('PhpMyAdmin\Controllers\Table\TableChartController');
19 'TableChartController', 'PhpMyAdmin\Controllers\Table\TableChartController'
21 $container->set('PhpMyAdmin\Response', Response
::getInstance());
22 $container->alias('response', 'PhpMyAdmin\Response');
24 /* Define dependencies for the concerned controller */
25 $dependency_definitions = array(
26 "sql_query" => &$GLOBALS['sql_query'],
27 "url_query" => &$GLOBALS['url_query'],
28 "cfg" => &$GLOBALS['cfg']
31 /** @var TableChartController $controller */
32 $controller = $container->get('TableChartController', $dependency_definitions);
33 $controller->indexAction();