&$GLOBALS['sql_query'], 'url_query' => &$GLOBALS['url_query'], 'cfg' => &$GLOBALS['cfg'], ]; /** @var Definition $definition */ $definition = $containerBuilder->getDefinition(ChartController::class); $parameterBag = $containerBuilder->getParameterBag(); array_map( static function (string $parameterName, $value) use ($definition, $parameterBag) { $definition->replaceArgument($parameterName, $parameterBag->escapeValue($value)); }, array_keys($dependency_definitions), $dependency_definitions ); /** @var ChartController $controller */ $controller = $containerBuilder->get(ChartController::class); $controller->indexAction();