framework
framework copied to clipboard
[11.x] fix: allows injection using multiple interfaces with the same concrete implementation
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.
Whoops, missed some failing tests. I'll get these fixed up.
Seems like we would want a test for this new behavior I think.
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: https://github.com/laravel/framework/issues/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 😬