Skip to content

Commit 733ad17

Browse files
committed
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.
1 parent 238099e commit 733ad17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/ConfigDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
7575

7676
$this->validateConfiguration($extension, $configuration);
7777

78+
$configs = $container->getParameterBag()->resolveValue($configs);
79+
7880
$processor = new Processor();
7981
$config = $processor->processConfiguration($configuration, $configs);
8082

81-
$config = $container->getParameterBag()->resolveValue($config);
82-
8383
if ($name === $extension->getAlias()) {
8484
$output->writeln(sprintf('# Current configuration for extension with alias: "%s"', $name));
8585
} else {

0 commit comments

Comments
 (0)