-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[11.x] fix: allows injection using multiple interfaces with the same concrete implementation #53275
Conversation
Whoops, missed some failing tests. I'll get these fixed up. |
Seems like we would want a test for this new behavior I think. |
…tion can be injected in controllers
Should be good now. I wasn't 100% sure if the test fit into any of the existing test files, so I added a new one. |
Sorry for delay - thanks. 👍 |
This caused an issue with route model binding. See: #53952 @jamiethorpe since you authored this PR, maybe you could give some insight? It would be appreciated! 🙏 |
Reverting for now. |
Thank you |
@jasonvarga This looks like an oversight on my part. I probably won't get to it until after the holidays, but I'll take another stab at it and and tests to make sure the refactor doesn't break the same functionality. Thanks for finding that 😬 |
Fixes issue 53110
This allows multiple interfaces to be injected when they use the same concrete implementation. This change also prevents injecting the same interface twice, but I'm not sure if that's necessary.