Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd0bb3d

Browse filesBrowse 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
Copy full SHA for cd0bb3d

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.