Is it possible to setup an event listener (or do — something else?) to listen for all the events fired by a Symfony 2 AppKernel
application for a particular request?
That is, I know I can browse an application with app_dev.php
and use the profiler to view a list of all the listeners, but I'm interested in grabbing a list of every event that's been dispatched/fired. I know some event systems have a special global/all listener what would let me receive every event. I'm wondering if Symfony has something similar, or if there's another mechanism to get a list of all the available events on a particular page.
I also know I could add some temporary debugging code to one of the event dispatcher 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 of a hack/less-destructive.
New to Symfony, but not new to programming. Apologies if this is a naive question, but googling about hasn't revealed what I'm after.