8000 Enable container.autowiring.strict_mode by nicolas-grekas · Pull Request #221 · symfony/recipes · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
1 commit merged into from
Oct 24, 2017
Merged

Enable container.autowiring.strict_mode #221

1 commit merged into from
Oct 24, 2017

Conversation

nicolas-grekas
Copy link
Member
Q A
License MIT

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?

Copy link
@ghost ghost left a 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.

@stof
Copy link
Member
stof commented Oct 23, 2017

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.

symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull request Oct 24, 2017
…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
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Oct 24, 2017
…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
@nicolas-grekas
Copy link
Member Author

PR ready for votes, feature symfony/symfony#24671 merged

@ghost ghost merged commit 6951a4c into symfony:master Oct 24, 2017
ghost pushed a commit that referenced this pull request Oct 24, 2017
@Tobion
Copy link
Contributor
Tobion commented Oct 25, 2017

This should be enabled in symfony-standard 3.4 as well.

< 8000 input type="hidden" name="_method" value="put" autocomplete="off" />

fabpot added a commit to symfony/symfony-standard that referenced this pull request Nov 9, 2017
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
@nicolas-grekas nicolas-grekas deleted the opt-out-autow branch November 30, 2017 17:41
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0