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.
This commit is contained in:
Christian Flothmann 2014-08-09 12:16:37 +02:00
parent 5ca28c0d71
commit 19f3b47236
1 changed files with 2 additions and 2 deletions

View File

@ -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 {