'zoom', 'url_query' => &$url_query, ]; /** @var Definition $definition */ $definition = $containerBuilder->getDefinition(SearchController::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 SearchController $controller */ $controller = $containerBuilder->get(SearchController::class); $controller->indexAction();