{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block menu %} {{ source('@WebProfiler/Icon/event.svg') }} Events {% endblock %} {% block panel %}

Dispatched Events

{% for dispatcherName, dispatcherData in collector.data %}

{{ dispatcherName }}

{% if dispatcherData['called_listeners'] is empty %}

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

{% else %}

Called Listeners {{ dispatcherData['called_listeners']|length }}

{{ _self.render_table(dispatcherData['called_listeners']) }}

Not Called Listeners {{ dispatcherData['not_called_listeners']|length }}

{% if dispatcherData['not_called_listeners'] 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 %} {{ _self.render_table(dispatcherData['not_called_listeners']) }} {% endif %}

Orphaned Events {{ dispatcherData['orphaned_events']|length }}

{% if dispatcherData['orphaned_events'] 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 dispatcherData['orphaned_events'] %} {% endfor %}
Event
{{ event }}
{% endif %}
{% endif %}
{% endfor %}
{% 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 %}