-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add a way to resolve environment variables in debug:config #40582
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
Comments
which version of Symfony are you using ? |
Sorry, I left that one out. Using 5.1.11 |
Hi! |
Thank you for this suggestion. |
Yes, I'm interested |
Thank you for this suggestion. |
I'll start this again, still interested in doing it! 👍 |
…nfig command (alexandre-daubois) This PR was merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] Add `resolve-env` option to debug:config command | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #40582 | License | MIT | Doc PR | _NA_ Add `--resolve-env` option to `debug: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: ``` $ symfony console debug:config framework | grep secret secret: '%env(APP_SECRET)%' secrets: vault_directory: '/home/alexandredaubois/(...)/config/secrets/%env(default:kernel.environment:APP_RUNTIME_ENV)%' $ symfony console debug:config framework --resolve-env | grep secret secret: 90d83502629d64dec4cd6e33c9b31267 secrets: vault_directory: /home/alexandredaubois/(...)/config/secrets/dev ``` Commits ------- bdc8e02 [FrameworkBundle] Add `resolve-env` option to debug:config command
Uh oh!
There was an error while loading. Please reload this page.
Description
The
bin/console debug:config
does not attempt to resolve environment variables (at least in5.1.11
) which makes it difficult to verify that expected values are being passed around.I don't know if this change may be introduced without any BC breaks but if not, even having the option, like
--resolve-env
would be nice for situations where I know I want that behavior.Current behavior
Proposed behavior
I did not find an opened issue about this particular problem, just some related ones, such as #20684 (comment)
The text was updated successfully, but these errors were encountered: