Translated using Weblate (Persian)
[phpmyadmin.git] / tbl_chart.php
blobe7964461aaa1d014b88b8e3af1a080be6725b27d
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\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 array_map(
29 static function (string $parameterName, $value) use ($definition) {
30 $definition->replaceArgument($parameterName, $value);
32 array_keys($dependency_definitions),
33 $dependency_definitions
36 /** @var ChartController $controller */
37 $controller = $containerBuilder->get(ChartController::class);
38 $controller->indexAction();