From 19f3b47236d093766f0f57d97edc843298ec41fa Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 9 Aug 2014 12:16:37 +0200 Subject: [PATCH] resolve parameters before the configs are processed If the raw values are passed to the processor, config values don't necessarily have the expected data type. For example, the value of the kernel.debug parameter is a boolean type. But when passed as the raw parameter name, it is a string. --- .../Bundle/FrameworkBundle/Command/ConfigDebugCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php index a60d4f237f..777628623f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php @@ -75,11 +75,11 @@ EOF $this->validateConfiguration($extension, $configuration); + $configs = $container->getParameterBag()->resolveValue($configs); + $processor = new Processor(); $config = $processor->processConfiguration($configuration, $configs); - $config = $container->getParameterBag()->resolveValue($config); - if ($name === $extension->getAlias()) { $output->writeln(sprintf('# Current configuration for extension with alias: "%s"', $name)); } else {