Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7283483

Browse files
committed
bug #11625 [FrameworkBundle] resolve parameters before the configs are processed in the config:debug command (xabbuh)
This PR was merged into the 2.5 branch. Discussion ---------- [FrameworkBundle] resolve parameters before the configs are processed in the config:debug command | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11622 | License | MIT | Doc PR | 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. @lyrixx Do you have any objections? Commits ------- 19f3b47 resolve parameters before the configs are processed
2 parents 2cf1205 + 19f3b47 commit 7283483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/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)