{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% set callCount = collector.calls|length %} {% set errorCount = collector.errors|length %} {% if callCount == 0 %} {% set color_code = '' %} {% elseif errorCount > 0 %} {% set color_code = 'red' %} {% else %} {% set color_code = 'green' %} {% endif %} {% set icon %} {% if profiler_markup_version == 1 %} {{ include('@CsaGuzzle/Icon/guzzle.svg', { height: 28, color: '#3F3F3F' }) }} {{ callCount }} {% else %} {{ include('@CsaGuzzle/Icon/guzzle.svg') }} {{ callCount }} {% endif %} {% endset %} {% set text %}
Success {{ callCount - errorCount }}
Errors {{ errorCount }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: 'guzzle', status: color_code }) }} {% endblock %} {% block head %} {{ parent() }} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} {% endif %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} {{ include('@CsaGuzzle/Icon/guzzle.svg', { height: 30, color: '#3F3F3F' }) }} {% else %} {{ include('@CsaGuzzle/Icon/guzzle.svg')}} {% endif %} {{ collector.name|capitalize|default('HTTP calls') }} {% if collector.calls is not empty %} {{ collector.calls|length }} {% endif %} {% endblock %} {% block panel %}

{{ (collector.name|capitalize)|default('HTTP calls') }}

{{ include('@CsaGuzzle/Calls/list.html.twig', { calls: collector.calls }) }} {% endblock %}