Skip to content

Commit 2876495

Browse files
committed
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
2 parents afe58d4 + d58c7fc commit 2876495

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* Add argument `&$asGhostObject` to LazyProxy's `DumperInterface` to allow using ghost objects for lazy loading services
99
* Add `enum` env var processor
1010
* Add `shuffle` env var processor
11+
* Add `resolve-env` option to `debug:config` command to display actual values of environment variables in dumped configuration
1112

1213
6.1
1314
---

0 commit comments

Comments
 (0)