Is it possible to set up an event listener (or do something else?) To listen to all the events triggered by the Symfony 2 AppKernel for a specific request?
That is, I know that I can view the application using app_dev.php and use the profiler to view a list of all listeners, but I am interested in capturing a list of all events that have been sent / fired. I know that in some event systems there is a special global / all listener that will allow me to receive every event. I am wondering if Symfony has something similar or if there is another mechanism to get a list of all available events on a particular page.
I also know that I can add a temporary debug code to one of the event manager classes
Symfony/Component/EventDispatcher/EventDispatcher.php Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
but I'm looking for something that is less harmful / less destructive.
New to Symfony, but not new to programming. Sorry if this is a naive question, but googling about has not shown what I need.
source share