-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
At the moment the dispatcher only makes match by exact class coincidence, it would be great to have the ability to listen to abstract classes or interfaces too
Describe the solution you'd like
Instead of checking only for exact class check for parents too
For example, using it with antidot framework starter you need a config like that:
services:
App\Application\EventListener\QueueLogWriter:
tags:
- { name: 'event_listener', event: 'Antidot\Queue\Event\MessageProcessed' }
- { name: 'event_listener', event: 'Antidot\Queue\Event\MessageReceived' }
- { name: 'event_listener', event: 'Antidot\Queue\Event\QueueConsumerStarted' }
Listening to parent class it will look like this
services:
App\Application\EventListener\QueueLogWriter:
tags:
- { name: 'event_listener', event: 'Antidot\Queue\Event\QueueEvent' }
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request