#99081Implement ServiceSubscriberInterface
Description
Hello Core-Team,
Symfony offers the possibility to just load the classes you really need. The system is called service subscriber and locator. In most cases this system is used for ActionControllers, but can be used everywhere you want:
https://symfony.com/doc/current/service_container/service_subscribers_locators.html
Symfony comes with 2 Compiler Passes to resolve and register such services. Further, classes implementing the ServiceSubscriberInterface will automatically tagged with “container.service_subscriber” in
Currently each extension author has to adopt this technique for each of its extensions himself. Maybe TYPO3 could add this symfony tag and apply these CompilerPass to simplify the use of this symfony feature.
Stefan
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.