-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Resolve env params in debug:config command #20688
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
[FrameworkBundle] Resolve env params in debug:config command #20688
Conversation
cb18a90
to
f3b9610
Compare
f3b9610
to
98dcd51
Compare
👍 from my side this fixes the main bug reported in #20684. Status: reviewed |
98dcd51
to
37bbea6
Compare
👍 This solution worked for me too. Thanks Nicolas. |
👍 |
37bbea6
to
695d100
Compare
@nicolas-grekas About #20696, I just checked this out after your last commit and the result is that running It's quite better than the current output but as you can guess I expected to get the actual value of the parameter, which looks not possible actually. Does #20618 helps in that way? Anyway, thank you for this. |
…nd (nicolas-grekas) This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] Resolve env params in debug:config command | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20696 | License | MIT | Doc PR | - Displays e.g. `url: '%env(DATABASE_URL)%'` instead of `url: env_DATABASE_URL_b188317b1d181eca5f0be35aefdae9c4` when doing `bin/console debug:config doctrine` Commits ------- 695d100 [FrameworkBundle] Resolve env params in debug:config command
This PR was merged into the 3.2 branch. Discussion ---------- Fix misresolved parameters in debug:config on 3.2 | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a This fixes parameters resolution (classic and env ones) in `debug:config`, again. Merging #20714 broke the fix resolving env parameters made in #20688, and anyway it was mismerged (#20714 was not applied when using the `path` argument, my bad, I should have prevented it). This adds a test which prevents regressions so I hope this is is the last PR on this subject. The buggy output is unfortunately part of the last 3.2 release... It can easily be confirmed by running `debug:config doctrine` on a fresh symfony-demo project Commits ------- c88bc89 Fix misresolved parameters in debug:config on 3.2
Displays e.g.
url: '%env(DATABASE_URL)%'
instead of
url: env_DATABASE_URL_b188317b1d181eca5f0be35aefdae9c4
when doing
bin/console debug:config doctrine