{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block menu %} {{ include('@WebProfiler/Icon/event.svg') }} Events {% endblock %} {% block panel %}

Event Dispatcher

{% if collector.calledlisteners is empty %}

No events have been recorded. Check that debugging is enabled in the kernel.

{% else %}

Called Listeners {{ collector.calledlisteners|length }}

{{ helper.render_table(collector.calledlisteners) }}

Not Called Listeners {{ collector.notcalledlisteners|length }}

{% if collector.notcalledlisteners is empty %}

There are no uncalled listeners.

All listeners were called for this request or an error occurred when trying to collect uncalled listeners (in which case check the logs to get more information).

{% else %} {{ helper.render_table(collector.notcalledlisteners) }} {% endif %}

Orphaned Events {{ collector.orphanedEvents|length }}

{% if collector.orphanedEvents is empty %}

There are no orphaned events.

All dispatched events were handled or an error occurred when trying to collect orphaned events (in which case check the logs to get more information).

{% else %} {% for event in collector.orphanedEvents %} {% endfor %}
Event
{{ event }}
{% endif %}
{% endif %} {% endblock %} {% macro render_table(listeners) %} {% set previous_event = (listeners|first).event %} {% for listener in listeners %} {% if loop.first or listener.event != previous_event %} {% if not loop.first %} {% endif %} {% set previous_event = listener.event %} {% endif %} {% if loop.last %} {% endif %} {% endfor %}
Priority Listener
{{ listener.event }}
{{ listener.priority|default('-') }} {{ profiler_dump(listener.stub) }}
{% endmacro %}