Merge pull request #1807 from udan11/l10n
[phpmyadmin.git] / tbl_chart.php
blob6c7fdf6fa1baf22dcc39cce9ed8d4dead92a76e6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * handles creation of the chart
6 * @package PhpMyAdmin
7 */
9 namespace PMA;
11 require_once 'libraries/di/Container.class.php';
12 require_once 'libraries/controllers/TableChartController.class.php';
14 $container = DI\Container::getDefaultContainer();
15 $container->factory('PMA\Controllers\Table\TableChartController');
16 $container->alias('TableChartController', 'PMA\Controllers\Table\TableChartController');
18 /* Define dependencies for the concerned controller */
19 $dependency_definitions = array(
20 "sql_query" => &$GLOBALS['sql_query'],
21 "url_query" => &$GLOBALS['url_query'],
22 "cfg" => &$GLOBALS['cfg']
25 /** @var Controllers\Table\TableChartController $controller */
26 $controller = $container->get('TableChartController', $dependency_definitions);
27 $controller->indexAction();