Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
We currently have the list of event with called and not called listeners:
This is great, but if I do something like this:
$this->get('event_dispatcher')->dispatch('unknow.event');
This one does not appear anywhere on the profiler.
It would be great to have an "Orphan events" section to list event that was dispatched but not managed by any listener. This would allow an easier debugging IMHO.
Additionally, we might add a warning section on the profiler toolbar when orphan event are dispatched.