{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% macro logo() %} PHPFlasher {% endmacro %} {% block toolbar %} {% import _self as macros %} {% set displayedEnvelopes = collector.displayedEnvelopes %} {% set dispatchedEnvelopes = collector.dispatchedEnvelopes %} {% set totalDispatched = dispatchedEnvelopes|length %} {% set totalDisplayed = displayedEnvelopes|length %} {% if totalDisplayed > 0 %} {# Initialize type counts #} {% set typeCounts = {} %} {% for envelope in displayedEnvelopes %} {% set type = envelope.type|default('info')|lower %} {% set typeCounts = typeCounts | merge({ (type): (typeCounts[type]|default(0) + 1) }) %} {% endfor %} {% set icon %} {{ macros.logo() }} {{ source('@FlasherSymfony/profiler/flasher.svg') }} {% if totalDisplayed == totalDispatched %} {{ totalDisplayed }} {% else %} {{ totalDisplayed }}/{{ totalDispatched }} {% endif %} {% endset %} {% set text %}
Notifications Displayed {{ totalDisplayed }}
{% if totalDispatched != totalDisplayed %}
Notifications Dispatched: {{ totalDispatched }}
{% endif %} {% if totalDisplayed > totalDispatched %}
Note: Some notifications are from previous requests.
{% endif %} {% for type, count in typeCounts %}
{{ type|capitalize }} {{ count }}
{% endfor %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} {% endif %} {% endblock %} {% block menu %} {% import _self as macros %} {% set totalDisplayed = collector.displayedEnvelopes|length %} {% set totalDispatched = collector.dispatchedEnvelopes|length %} {{ source('@FlasherSymfony/profiler/flasher.svg') }} {{ macros.logo() }} {% if totalDisplayed > 0 %} {% if totalDisplayed == totalDispatched %} {{ totalDisplayed }} {% else %} {{ totalDisplayed }}/{{ totalDispatched }} {% endif %} {% endif %} {% endblock %} {% block panel %} {% set displayedEnvelopes = collector.displayedEnvelopes %} {% set dispatchedEnvelopes = collector.dispatchedEnvelopes %} {% set totalNotifications = dispatchedEnvelopes|length %} {% set displayedNotifications = displayedEnvelopes|length %} {% set config = collector.config %} {% set versions = collector.versions %}

PHPFlasher Notifications

{% if totalNotifications == 0 %}

No notifications have been dispatched.

{% else %}

Notifications {{ displayedNotifications }}/{{ totalNotifications }}

{% if displayedNotifications > totalNotifications %}

The number of displayed notifications is greater than the number of dispatched notifications. This may happen if notifications are stored in the session from previous requests.

{% endif %}

Displayed Notifications

{{ include('@FlasherSymfony/profiler/_notifications_table.html.twig', { 'envelopes': displayedEnvelopes }) }} {% if totalNotifications > displayedNotifications %}

Remaining Notifications

{% set remainingNotifications = dispatchedEnvelopes|slice(displayedNotifications) %} {{ include('@FlasherSymfony/profiler/_notifications_table.html.twig', { 'envelopes': remainingNotifications }) }} {% endif %}

Debug

Version Information

  • PHPFlasher Version: {{ versions.php_flasher }}
  • PHP Version: {{ versions.php }}
  • Symfony Version: {{ versions.symfony }}

Configuration

{{ profiler_dump(config, maxDepth=10) }}
{% endif %} {% endblock %} {% block head %} {{ parent() }} {% endblock %}