-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Deprecate the "--env" and "--no-debug" console options #28653
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
Conversation
48a49e1
to
2f92fdd
Compare
2f92fdd
to
399b5ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add a note in the UPGRADE/CHANGELOG files
399b5ac
to
01c4720
Compare
@fabpot done, thanks for the reminder. |
161ea03
to
654aa3f
Compare
654aa3f
to
7f42065
Compare
UPGRADE-5.0.md
Outdated
@@ -116,6 +116,10 @@ FrameworkBundle | |||
* Added support for the SameSite attribute for session cookies. It is highly recommended to set this setting (`framework.session.cookie_samesite`) to `lax` for increased security against CSRF attacks. | |||
* The `ContainerAwareCommand` class has been removed, use `Symfony\Component\Console\Command\Command` | |||
with dependency injection instead. | |||
* The `--env` console option and its "-e" shortcut have been deprecated, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 5.0 this option would removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed
7f42065
to
9f60ff8
Compare
Thank you @chalasr. |
…g" console options (chalasr) This PR was merged into the 4.2-dev branch. Discussion ---------- [FrameworkBundle] Deprecate the "--env" and "--no-debug" console options | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | n/a | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 9f60ff8 [FrameworkBundle] Deprecate the "--env" and "--no-debug" options
Can you open a docs issue / pr? |
@weaverryan sorry, forgot about it. Just opened symfony/symfony-docs#10444 |
Hi, I can't seem to be able to find any explanations on this decision, is there a link to a discussion about it somewhere I could be pointed to? Also Thanks for you answers, and keep up the good work. |
@gnugat : This was discussed a bit a long time ago. Here is a comment from Fabien mentioning this. |
@ogizanagi thanks for the link, that's exactly what I was looking for (the description in this PR was empty). Also thanks for the explanation on the BC break policy 👍 |
@gnugat link added to the PR body, sorry about that |
this is really a bad decision, it makes the use on windows much more complicated. this is really a very bad DX.
vs
vs
also the handy autocomplete possibility with clink on windows and bash-completion on linux is gone with this change. environment variables are cool but not the holy grail for everything. there is a reason for having flags on commands. imagine you have to call all commands like this:
please revert this. |
@c33s can you please open a separate issue? Commenting on anything closed is likely going to get low traction. |
Reverted in #29204 |
…-env and --no-debug console options (chalasr) This PR was merged into the 4.2-dev branch. Discussion ---------- [FrameworkBundle][WebServerBundle] Revert deprecation of --env and --no-debug console options This reverts commit 9f60ff8. This reverts commit 31b5615. | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28984 | License | MIT | Doc PR | - Working on recipes with @weaverryan, we figured out that this deprecation is just making our life more difficult. Let's revert it. Same as #29126, reverts #28745 and #28653 Commits ------- 443f8ad [FrameworkBundle][WebServerBundle] Revert deprecation of --env and --no-debug console options
See #23343 (comment)