devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8/tbl_chart.php

33 lines
972 B
PHP
Raw Normal View History

2016-10-22 14:57:10 +00:00
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* handles creation of the chart
*
* @package PhpMyAdmin
*/
2018-04-14 09:18:00 +00:00
use PhpMyAdmin\Controllers\Table\TableChartController;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Response;
2016-10-22 14:57:10 +00:00
require_once 'libraries/common.inc.php';
2018-04-14 09:18:00 +00:00
$container = Container::getDefaultContainer();
$container->factory('PhpMyAdmin\Controllers\Table\TableChartController');
2016-10-22 14:57:10 +00:00
$container->alias(
2018-04-14 09:18:00 +00:00
'TableChartController', 'PhpMyAdmin\Controllers\Table\TableChartController'
2016-10-22 14:57:10 +00:00
);
2018-04-14 09:18:00 +00:00
$container->set('PhpMyAdmin\Response', Response::getInstance());
$container->alias('response', 'PhpMyAdmin\Response');
2016-10-22 14:57:10 +00:00
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
"sql_query" => &$GLOBALS['sql_query'],
"url_query" => &$GLOBALS['url_query'],
"cfg" => &$GLOBALS['cfg']
);
/** @var TableChartController $controller */
$controller = $container->get('TableChartController', $dependency_definitions);
$controller->indexAction();