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] Allow service subscribers to returnSubscribedService[]#47101
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ServiceSubscriberInterface::getSubscribedServices() to returnSubscribedService[]ServiceSubscriberInterface::getSubscribedServices() to returnSubscribedService[]Uh oh!
There was an error while loading.Please reload this page.
ServiceSubscriberInterface::getSubscribedServices() to returnSubscribedService[]SubscribedService[]dfdeb74 to263acddComparenicolas-grekas commentedJul 29, 2022
I like it :) Let's see how DI can leverage that for Autowiring now. |
11073d1 to29ab4b0Compare29ab4b0 to0fb543fComparesrc/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Compiler/RegisterServiceSubscribersPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
25882d6 toaa868d8CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
aa868d8 toc90f7f3CompareSubscribedService[]SubscribedService[]d921b76 to2babe71Comparesrc/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Compiler/RegisterServiceSubscribersPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
2babe71 to8ed139eCompare6a125e3 to7785a60Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍
(I made some changes, see 2nd commit)
Uh oh!
There was an error while loading.Please reload this page.
7785a60 to049f15eComparefabpot commentedAug 19, 2022
Thank you@kbond. |
Uh oh!
There was an error while loading.Please reload this page.
This allows
ServiceSubscriberInterface::getSubscribedServices()to returnSubscribedService[]which now has the ability to add DI attribute objects (ieTarget).When using the
ServiceSubscriberTrait, theSubscribedServiceattribute can add attributes as well:TODO: