You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #46821 [FrameworkBundle] Add resolve-env option to debug:config 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
-------
bdc8e0224c [FrameworkBundle] Add `resolve-env` option to debug:config command
0 commit comments