8000 bug #20714 [FrameworkBundle] Fix unresolved parameters from default c… · symfony/symfony@cd0bb3d · GitHub
[go: up one dir, main page]

Skip to content

Commit cd0bb3d

Browse files
committed
bug #20714 [FrameworkBundle] Fix unresolved parameters from default configs in debug:config (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle] Fix unresolved parameters from default configs in debug:config | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a When using the `debug:config` command, if the dumped configuration is explicitly defined by the user, then parameters are properly resolved in the output. If it is not, and values come from the bundle default configuration directly, they are not. Steps to reproduce: - Checkout the symfony demo - Run `debug:config twig` - Look at the `debug` key, it is the `kernel.debug` parameter properly resolved: `true` - Look at the `cache` key, it is not resolved: `'%kernel.cache_dir%/twig'` This fixes it by resolving the configs once again after processing the configuration. ping @weaverryan Commits ------- 26f588a Fix unresolved parameters from default bundle configs in debug:config
2 parents 3113f3f + 26f588a commit cd0bb3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9090
$output->writeln(sprintf('# Current configuration for "%s"', $name));
9191
}
9292

93-
$output->writeln(Yaml::dump(array($extension->getAlias() => $config), 10));
93+
$output->writeln(Yaml::dump(array($extension->getAlias() => $container->getParameterBag()->resolveValue($config)), 10));
9494
}
9595

9696
private function compileContainer()

0 commit comments

Comments
 (0)
0