{% 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 %} {% set cacheHitCount = 0 %} {% set cacheMissCount = 0 %} {% for call in collector.calls if call.cache is defined and call.cache == 'HIT' %} {% if call.cache == 'HIT' %} {% set cacheHitCount = cacheHitCount + 1 %} {% else %} {% set cacheMissCount = cacheMissCount + 1 %} {% endif %} {% endfor %} {% set mockReplayCount = 0 %} {% set mockRecordCount = 0 %} {% for call in collector.calls if call.mock is defined %} {% if call.mock == 'REPLAY' %} {% set mockReplayCount = mockReplayCount + 1 %} {% else %} {% set mockRecordCount = mockRecordCount + 1 %} {% endif %} {% endfor %} {% 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 %} {% if collector.totalTime > 0 %} in {{ collector.totalTime|csa_guzzle_format_duration }} {% endif %} {% endset %} {% set text %}
Success {{ callCount - errorCount }}
{% if cacheHitCount %}
Cache HIT {{ cacheHitCount }}
{% endif %} {% if cacheMissCount %}
Cache MISS {{ cacheMissCount }}
{% endif %} {% if mockReplayCount %}
Mocks (replayed) {{ mockReplayCount }}
{% endif %} {% if mockRecordCount %}
Mocks (recorded) {{ mockRecordCount }}
{% endif %} {% if errorCount %}
Errors {{ errorCount }}
{% endif %} {% 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 }} {% if collector.totalTime > 0 %} {{ collector.totalTime|csa_guzzle_format_duration }} {% endif %} {% endif %} {% endblock %} {% block panel %}

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

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