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 require_once ROOT_PATH
. 'libraries/common.inc.php';
19 /* Define dependencies for the concerned controller */
20 $dependency_definitions = [
21 'sql_query' => &$GLOBALS['sql_query'],
22 'url_query' => &$GLOBALS['url_query'],
23 'cfg' => &$GLOBALS['cfg'],
26 /** @var Definition $definition */
27 $definition = $containerBuilder->getDefinition(ChartController
::class);
28 $parameterBag = $containerBuilder->getParameterBag();
30 static function (string $parameterName, $value) use ($definition, $parameterBag) {
31 $definition->replaceArgument($parameterName, $parameterBag->escapeValue($value));
33 array_keys($dependency_definitions),
34 $dependency_definitions
37 /** @var ChartController $controller */
38 $controller = $containerBuilder->get(ChartController
::class);
39 $controller->indexAction();