8000 Log orphan events on the profiler · Issue #24347 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Log orphan events on the profiler #24347
Closed
@soullivaneuh

Description

@soullivaneuh
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:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0