Translated using Weblate (Estonian)
[phpmyadmin.git] / tbl_chart.php
blobaf3fd24e8d992459fadc80ac9a4d295a30c16ce4
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * handles creation of the chart
6 * @package PhpMyAdmin
7 */
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');
18 $container->alias(
19 'TableChartController',
20 'PhpMyAdmin\Controllers\Table\TableChartController'
22 $container->set('PhpMyAdmin\Response', Response::getInstance());
23 $container->alias('response', 'PhpMyAdmin\Response');
25 /* Define dependencies for the concerned controller */
26 $dependency_definitions = [
27 "sql_query" => &$GLOBALS['sql_query'],
28 "url_query" => &$GLOBALS['url_query'],
29 "cfg" => &$GLOBALS['cfg']
32 /** @var TableChartController $controller */
33 $controller = $container->get('TableChartController', $dependency_definitions);
34 $controller->indexAction();