2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * handles creation of the chart
13 require_once 'libraries/common.inc.php';
14 require_once 'libraries/di/Container.class.php';
15 require_once 'libraries/Response.class.php';
16 require_once 'libraries/controllers/TableChartController.class.php';
18 $container = DI\Container
::getDefaultContainer();
19 $container->factory('PMA\Controllers\Table\TableChartController');
21 'TableChartController', 'PMA\Controllers\Table\TableChartController'
23 $container->set('PMA_Response', PMA_Response
::getInstance());
24 $container->alias('response', 'PMA_Response');
26 /* Define dependencies for the concerned controller */
27 $dependency_definitions = array(
28 "sql_query" => &$GLOBALS['sql_query'],
29 "url_query" => &$GLOBALS['url_query'],
30 "cfg" => &$GLOBALS['cfg']
33 /** @var Controllers\Table\TableChartController $controller */
34 $controller = $container->get('TableChartController', $dependency_definitions);
35 $controller->indexAction();