Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DependencyInjection] Single typed argument can be applied on multiple parameters#24991
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[DependencyInjection] Single typed argument can be applied on multiple parameters#24991
Uh oh!
There was an error while loading.Please reload this page.
Conversation
189ee28 to2e11874Comparenicolas-grekas commentedNov 16, 2017
thank you so much@sroze |
nicolas-grekas commentedNov 16, 2017
do you think you coud also include the patch on PassConfig on ##24978, and add a test in ContainerBuilderTest that ensures that named arguments win over bindings? |
2e11874 tobf7eeefComparesroze commentedNov 16, 2017
@nicolas-grekas good point, I've added the test proving the named vs the typed. But I think the priority of the passes should be in another PR, will issue another tomorrow. |
24173cf tod512654Comparesroze commentedNov 17, 2017
@nicolas-grekas actually needed this new test fixture class so added the test here as well. It turns out that we don't need the pass order change. |
stof commentedNov 17, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thank you@nicolas-grekas &@sroze. |
… on multiple parameters (nicolas-grekas, sroze)This PR was merged into the 3.4 branch.Discussion----------[DependencyInjection] Single typed argument can be applied on multiple parameters| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | ø| License | MIT| Doc PR | øI'm@nicolas-grekas' test writer today. This makes the argument resolution working when injecting the same type multiple times (sub-set of PR#24978)Commits-------d512654 Test that named arguments are prioritized over typehintedbf7eeef Prove that change is working with tests2176be7 [DI] Fix by-type args injection
I'm@nicolas-grekas' test writer today. This makes the argument resolution working when injecting the same type multiple times (sub-set of PR#24978)