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:
parent
5ca28c0d71
commit
19f3b47236
@ -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 {
|
||||
|
Reference in New Issue
Block a user