Skip to content

[DependencyInjection] Fix autowiring types when there are more than 2 services colliding #21670

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

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

GuilhemN
Copy link
Contributor

@GuilhemN GuilhemN commented Feb 19, 2017

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

There is a bug in the AutowirePass, when using more than 2 services colliding and you want to use the autowiring types: it may not work depending on their order because notGuessableTypes is not reset.

@GuilhemN GuilhemN changed the title [DependencyInjection] Fix using autowiring types when there are more … [DependencyInjection] Fix using autowiring types when there are more than 2 services Feb 19, 2017
@GuilhemN GuilhemN changed the title [DependencyInjection] Fix using autowiring types when there are more than 2 services [DependencyInjection] Fix autowiring types when there are more than 2 services colliding Feb 19, 2017
@GuilhemN GuilhemN changed the base branch from master to 2.8 February 19, 2017 11:40
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fabpot
Copy link
Member

fabpot commented Feb 19, 2017

Thank you @GuilhemN.

@fabpot fabpot merged commit 5981278 into symfony:2.8 Feb 19, 2017
fabpot added a commit that referenced this pull request Feb 19, 2017
…more than 2 services colliding (GuilhemN)

This PR was merged into the 2.8 branch.

Discussion
----------

[DependencyInjection] Fix autowiring types when there are more than 2 services colliding

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

There is a bug in the `AutowirePass`, when using more than 2 services colliding and you want to use the autowiring types: it may not work depending on their order because `notGuessableTypes` is not reset.

Commits
-------

5981278 [DependencyInjection] Fix using autowiring types when there are more than 2 services
@GuilhemN GuilhemN deleted the AUTOWIRINGBUG branch February 19, 2017 17:44
This was referenced Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants