{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set request_handler %} {% if collector.controller.class is defined %} {% set link = collector.controller.file|file_link(collector.controller.line) %} {% if link %}{% else %}{% endif %} {{ collector.controller.class|abbr_class|striptags }} {%- if collector.controller.method -%}  :: {{ collector.controller.method }} {%- endif -%} {% if link %}{% else %}{% endif %} {% else %} {{ collector.controller }} {% endif %} {% endset %} {% set request_status_code_color = (collector.statuscode >= 400) ? 'red' : (collector.statuscode >= 300) ? 'yellow' : 'green' %} {% set icon %} {{ collector.statuscode }} {% if collector.route %} @ {{ collector.route }} {% endif %} {% endset %} {% set text %}
HTTP status {{ collector.statuscode }} {{ collector.statustext }}
Controller {{ request_handler }}
{% if collector.controller.class is defined %}
Controller class {{ collector.controller.class }}
{% endif %}
Route name {{ collector.route|default('NONE') }}
Has session {% if collector.sessionmetadata|length %}yes{% else %}no{% endif %}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} {% endblock %} {% block menu %} {{ include('@WebProfiler/Icon/request.svg') }} Request / Response {% endblock %} {% block panel %}

Request

GET Parameters

{% if collector.requestquery.all is empty %}

No GET parameters

{% else %} {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestquery }, with_context = false) }} {% endif %}

POST Parameters

{% if collector.requestrequest.all is empty %}

No POST parameters

{% else %} {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestrequest }, with_context = false) }} {% endif %}

Request Attributes

{% if collector.requestattributes.all is empty %}

No attributes

{% else %} {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestattributes }, with_context = false) }} {% endif %}

Cookies

{% if collector.requestcookies.all is empty %}

No cookies

{% else %} {{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestcookies }, with_context = false) }} {% endif %}

Request Headers

{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestheaders, labels: ['Header', 'Value'] }, with_context = false) }}

Request Content

{% if collector.content == false %}

Request content not available (it was retrieved as a resource).

{% elseif collector.content %}
{{ collector.content }}
{% else %}

No content

{% endif %}

Server Parameters

{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestserver }, with_context = false) }}

Response

Response Headers

{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responseheaders, labels: ['Header', 'Value'] }, with_context = false) }}

Session

Session Metadata

{% if collector.sessionmetadata is empty %}

No session metadata

{% else %} {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionmetadata }, with_context = false) }} {% endif %}

Session Attributes

{% if collector.sessionattributes is empty %}

No session attributes

{% else %} {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionattributes, labels: ['Attribute', 'Value'] }, with_context = false) }} {% endif %}

Flashes

Flashes

{% if collector.flashes is empty %}

No flash messages were created.

{% else %} {{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.flashes }, with_context = false) }} {% endif %}
{% if profile.parent %}

Parent Request

Return to parent request (token = {{ profile.parent.token }})

{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: profile.parent.getcollector('request').requestattributes }, with_context = false) }}
{% endif %} {% if profile.children|length %}

Sub Requests {{ profile.children|length }}

{% for child in profile.children %}

{{- child.getcollector('request').requestattributes.get('_controller') -}} (token = {{ child.token }})

{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: child.getcollector('request').requestattributes }, with_context = false) }} {% endfor %}
{% endif %}
{% endblock %}