Is there a way to load all event listeners for a given bundle?
I just found this approach:
$evd = $this->get('event_dispatcher'); $listeners = $evd->getListeners();
I have in my bundle a couple of listeners in the EventListener foldern and now i want to iterate through alle files in this folder and load one method.
Cheers for help
Source: Symfony Questions
Was this helpful?
0 / 0