[Entity Listeners] always lazy load via ServiceLocator #899
Labels
⭐️ EUFOSSA Hackathon
https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming
Feature
Milestone
Since soon support for Symfony < 3.4 will be dropped we could use a
ServiceLocator
herehttps://github.com/doctrine/DoctrineBundle/blob/master/Mapping/ContainerAwareEntityListenerResolver.php#L20
to and get rid of the
lazy
attribute completely?https://github.com/doctrine/DoctrineBundle/blob/master/DependencyInjection/Compiler/EntityListenerPass.php#L44
So we don't have to mark the listeners
public
anymore and we can always lazily fetch them.Or is there any reason to not always lazy load them?
The text was updated successfully, but these errors were encountered: