-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Add resolve-env
option to debug:config command
#46821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f93623d
to
af3940e
Compare
Hey! I think @jack-worman has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice feature. It simplifies debug of env var processing.
Thanks to it, I found something that looks like a bug.
$ SYMFONY_DECRYPTION_SECRET=Zm9v bin/console debug:config framework secrets.decryption_env_var --resolve-env
Current configuration for "framework.secrets.decryption_env_var"
================================================================
'base64:default::SYMFONY_DECRYPTION_SECRET'
src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php
Outdated
Show resolved
Hide resolved
af3940e
to
8f593c6
Compare
Didn't think of this case @GromNaN, thank you! I'm taking a look at it soon. |
That seems to be a special feature made by @nicolas-grekas. The value is correctly resolved by the command from a config pov. symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php Lines 1725 to 1735 in 517530c
|
There is a conflict in the changelog, can you rebase please? |
8f593c6
to
bdc8e02
Compare
Very interesting, thank you for the investigation Jérôme! Also, the rebase is done 🙂 |
Thank you @alexandre-daubois. |
Add
--resolve-env
option todebug:config
command to display actual values of environment variables in dumped configuration.This main purpose of this command is debugging as its name suggests. In order to help the developer to debug its configuration, it is convenient to display the actual value of environment variables present in the dumped configuration, instead of placeholders.
Here is the result: