Skip to content
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

Open
wants to merge 15 commits into
base: 11.x
Choose a base branch
from

Conversation

jamiethorpe
Copy link

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.

@jamiethorpe
Copy link
Author

Whoops, missed some failing tests. I'll get these fixed up.

@taylorotwell taylorotwell marked this pull request as draft October 23, 2024 13:01
@jamiethorpe jamiethorpe marked this pull request as ready for review November 1, 2024 00:38
@taylorotwell
Copy link
Member

Seems like we would want a test for this new behavior I think.

@taylorotwell taylorotwell marked this pull request as draft November 11, 2024 21:32
@jamiethorpe jamiethorpe marked this pull request as ready for review November 14, 2024 11:41
@jamiethorpe
Copy link
Author

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.

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.

Multiple interfaces injection fails if they have the same concrete class
2 participants