Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] Addresolve-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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
f93623d toaf3940eComparecarsonbot commentedJul 2, 2022
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-envCurrent configuration for "framework.secrets.decryption_env_var"================================================================'base64:default::SYMFONY_DECRYPTION_SECRET'
src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
af3940e to8f593c6CompareDidn't think of this case@GromNaN, thank you! I'm taking a look at it soon. |
GromNaN commentedJul 13, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 in517530c
|
There is a conflict in the changelog, can you rebase please? |
8f593c6 tobdc8e02CompareVery interesting, thank you for the investigation Jérôme! Also, the rebase is done 🙂 |
Thank you@alexandre-daubois. |
Uh oh!
There was an error while loading.Please reload this page.
Add
--resolve-envoption todebug:configcommand 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: