{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if collector.callCount %} {% if collector.errorCount %} {% set color = 'red' %} {% else %} {% set color = 'green' %} {% endif %} {% set status_color = collector.errorCount ? 'red' : (collector.hasSlowResponses() ? 'yellow' : 'normal') %} {% set icon %} {# Symfony <2.8 toolbar #} {% if profiler_markup_version == 1 %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }} {{ collector.callCount }} {% else %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }} {{ collector.callCount }} {% endif %} {% endset %} {% set text %}
API Calls {{ collector.callCount }}
Total time {% if collector.totalTime > 1.0 %} {{ '%0.2f'|format(collector.totalTime) }} s {% else %} {{ '%0.0f'|format(collector.totalTime * 1000) }} ms {% endif %}
{% endset %} {% include "@WebProfiler/Profiler/toolbar_item.html.twig" with { "link": profiler_url, status: status_color } %} {% endif %} {% endblock %} {% block menu %} {% if collector.callCount %} {% set label_class = collector.errorCount ? 'label-status-error' : (collector.hasSlowResponses() ? 'label-status-warning' : '') %} {% else %} {% set label_class = 'disabled' %} {% endif %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }} Guzzle {% if collector.callCount > 0 %} {{ collector.callCount }} {% endif %} {% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block panel %}

Logs

{% include '@EightPointsGuzzle/profiler.html.twig' with { 'collector': collector } %} {% endblock %}