-
-
Notifications
You must be signed in to change notification settings - Fork 495
Enable container.autowiring.strict_mode #221
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 statemen 8000 t. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Pull request passes validation.
Why does such discussion happens on the recipes repository rather than on Symfony (where the feature needs to be developed) ? I think much less people are following discussions there. |
…t from legacy autowiring (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - To preserve BC, autowiring still wires things in hybrid 2.8/3.3 modes. But 2.8 mode is really a foot gun. I propose to add a new parameter in SF3.4, to opt-out of this 2.8 mode, and enable this strict mode for all new projects. WDYT? (see symfony/recipes#221 for corresponding change on Flex recipe) Commits ------- a4a0ae2 [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring
…t from legacy autowiring (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - To preserve BC, autowiring still wires things in hybrid 2.8/3.3 modes. But 2.8 mode is really a foot gun. I propose to add a new parameter in SF3.4, to opt-out of this 2.8 mode, and enable this strict mode for all new projects. WDYT? (see symfony/recipes#221 for corresponding change on Flex recipe) Commits ------- a4a0ae2 [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring
PR ready for votes, feature symfony/symfony#24671 merged |
This should be enabled in symfony-standard 3.4 as well. |
This PR was merged into the 3.4 branch. Discussion ---------- enable container.autowiring.strict_mode as pointed out by @Tobion in symfony/recipes#221 (comment) Commits ------- a6a19c5 enable container.autowiring.strict_mode
To preserve BC, autowiring still wires things in hybrid 2.8/3.3 modes.
But 2.8 mode is really a foot gun.
I propose to add a new parameter in SF3.4, to opt-out of this 2.8 mode, and enable this strict mode for all new projects.
WDYT?