2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * handles creation of the chart
8 declare(strict_types
=1);
10 use PhpMyAdmin\Controllers\Table\ChartController
;
11 use Symfony\Component\DependencyInjection\Definition
;
13 if (! defined('ROOT_PATH')) {
14 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
17 global $containerBuilder;
19 require_once ROOT_PATH
. 'libraries/common.inc.php';
21 /* Define dependencies for the concerned controller */
22 $dependency_definitions = [
23 'sql_query' => &$GLOBALS['sql_query'],
24 'url_query' => &$GLOBALS['url_query'],
25 'cfg' => &$GLOBALS['cfg'],
28 /** @var Definition $definition */
29 $definition = $containerBuilder->getDefinition(ChartController
::class);
31 static function (string $parameterName, $value) use ($definition) {
32 $definition->replaceArgument($parameterName, $value);
34 array_keys($dependency_definitions),
35 $dependency_definitions
38 /** @var ChartController $controller */
39 $controller = $containerBuilder->get(ChartController
::class);
40 $controller->indexAction();