Can anyone advise how can I get all events (classes) that have AsEventListener tags in Symfony 6.4?
An example event dispatcher has these tags:
#[AsEventListener(event: ‘aa.bb.cc.’, method: ‘test’, priority: 20)]
class test {
…
}
How can I use following to get all tagged classes?
#[TaggedIterator('messenger.message_handler')] private readonly iterable $messageHandlers,
I wasnt to make a custom CLI command to list events that based on a specific name.
Thanks!
New contributor
Sashas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.