Translated using Weblate (Chinese (China))
[phpmyadmin.git] / tbl_chart.php
blobfcc5a9a6e2486bb5276f6bcf39382e48a734449b
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(
17 'TableChartController', 'PMA\Controllers\Table\TableChartController'
20 /* Define dependencies for the concerned controller */
21 $dependency_definitions = array(
22 "sql_query" => &$GLOBALS['sql_query'],
23 "url_query" => &$GLOBALS['url_query'],
24 "cfg" => &$GLOBALS['cfg']
27 /** @var Controllers\Table\TableChartController $controller */
28 $controller = $container->get('TableChartController', $dependency_definitions);
29 $controller->indexAction();