Commit cb0e532
committed
feature #46821 [FrameworkBundle] Add
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 commandresolve-env option to debug:config command (alexandre-daubois)File tree
2 files changed
+17
-3
lines changed- Command
- Tests/Functional
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | | - | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
0 commit comments