Using the same EntityListener for multiple entities with differrent service argument
问题 As an EntityListener is registered as a service, is it possible to register the same class multiple times with different argument and associate each of them with a particular entity ? Considering the following entities : /** * Class EntityA * @ORM\Entity * @ORM\EntityListeners({"myBundle\EventListener\SharedListener"}) */ class EntityA implements sharedBehaviourInterface { // stuff here } /** * Class EntityB * @ORM\Entity * @ORM\EntityListeners({"myBundle\EventListener\SharedListener"}) */