From 8a516933b7e84532a9e9a4a1a8c25f7156cd9f7d Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 1 Jan 2020 11:56:13 +0100 Subject: [PATCH] replace the include tag with the include() function --- src/Resources/views/stack.html.twig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Resources/views/stack.html.twig b/src/Resources/views/stack.html.twig index a437fcb9..72ca6372 100644 --- a/src/Resources/views/stack.html.twig +++ b/src/Resources/views/stack.html.twig @@ -34,10 +34,10 @@
- {% include '@Httplug/http_message.html.twig' with { data: stack.clientRequest, header: 'Request' } only %} + {{ include('@Httplug/http_message.html.twig', { data: stack.clientRequest, header: 'Request' }, with_context=false) }}
- {% include '@Httplug/http_message.html.twig' with { data: stack.clientResponse, header: 'Response' } only %} + {{ include('@Httplug/http_message.html.twig', { data: stack.clientResponse, header: 'Response' }, with_context=false) }}
{% if stack.profiles %} @@ -46,10 +46,10 @@

{{ profile.plugin }}

- {% include '@Httplug/http_message.html.twig' with { data: profile.request, header: 'Request' } only %} + {{ include('@Httplug/http_message.html.twig', { data: profile.request, header: 'Request' }, with_context=false) }}
- {% include '@Httplug/http_message.html.twig' with { data: profile.response, header: 'Response' } only %} + {{ include('@Httplug/http_message.html.twig', { data: profile.response, header: 'Response' }, with_context=false) }}
{% if not loop.last %} @@ -61,11 +61,11 @@ {% for child in collector.childrenStacks(stack) %}
- {% include '@Httplug/stack.html.twig' with { + {{ include('@Httplug/stack.html.twig', { 'collector': collector, 'client': client, 'stack': child, 'id': id ~ '-' ~ loop.index - } only %} + }, with_context=false) }}
{% endfor %}