mirror of
https://github.com/symfony/web-profiler-bundle.git
synced 2026-03-24 00:02:13 +01:00
Introduce twig-cs-fixer
This commit is contained in:
committed by
Fabien Potencier
parent
b00bee80f9
commit
9924031d9b
@@ -31,5 +31,5 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: false }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: false}) }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<td class="font-normal text-small text-muted nowrap">{{ loop.index }}</td>
|
||||
<td class="nowrap">{{ '%0.2f'|format((call.end - call.start) * 1000) }} ms</td>
|
||||
<td class="nowrap">{{ call.name }}({{ call.namespace|default('') }})</td>
|
||||
<td>{{ profiler_dump(call.value.result, maxDepth=2) }}</td>
|
||||
<td>{{ profiler_dump(call.value.result, maxDepth: 2) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<p>No arguments were set</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.arguments, labels: ['Argument', 'Value'], maxDepth: 2 }, with_context=false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.arguments, labels: ['Argument', 'Value'], maxDepth: 2}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>Options</h3>
|
||||
@@ -85,7 +85,7 @@
|
||||
<p>No options were set</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.options, labels: ['Option', 'Value'], maxDepth: 2 }, with_context=false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.options, labels: ['Option', 'Value'], maxDepth: 2}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
{% if collector.interactive %}
|
||||
@@ -100,7 +100,7 @@
|
||||
<p>No inputs were set</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.interactiveInputs, labels: ['Input', 'Value'], maxDepth: 2 }, with_context=false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.interactiveInputs, labels: ['Input', 'Value'], maxDepth: 2}, with_context: false) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<p>No application inputs are set</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.applicationInputs, labels: ['Input', 'Value'], maxDepth: 2 }, with_context=false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.applicationInputs, labels: ['Input', 'Value'], maxDepth: 2}, with_context: false) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -166,14 +166,14 @@
|
||||
<div class="tab-content">
|
||||
<h3>Server Parameters</h3>
|
||||
<h4>Defined in .env</h4>
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: request_collector.dotenvvars }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: request_collector.dotenvvars}, with_context: false) }}
|
||||
|
||||
<h4>Defined as regular env variables</h4>
|
||||
{% set requestserver = [] %}
|
||||
{% for key, value in request_collector.requestserver|filter((_, key) => key not in request_collector.dotenvvars.keys) %}
|
||||
{% set requestserver = requestserver|merge({(key): value}) %}
|
||||
{% endfor %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: requestserver }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: requestserver}, with_context: false) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
|
||||
<div class="tab-content">
|
||||
<h3>
|
||||
<a href="{{ path('_profiler', { token: profile.parent.token }) }}">Return to parent command</a>
|
||||
<a href="{{ path('_profiler', {token: profile.parent.token}) }}">Return to parent command</a>
|
||||
<small>(token = {{ profile.parent.token }})</small>
|
||||
</h3>
|
||||
|
||||
@@ -239,7 +239,7 @@
|
||||
{% for child in profile.children %}
|
||||
<h3>
|
||||
{{ child.url }}
|
||||
<small>(token = <a href="{{ path('_profiler', { token: child.token }) }}">{{ child.token }}</a>)</small>
|
||||
<small>(token = <a href="{{ path('_profiler', {token: child.token}) }}">{{ child.token }}</a>)</small>
|
||||
</h3>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status, additional_classes: 'sf-toolbar-block-right' }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: true, name: 'config', status: block_status, additional_classes: 'sf-toolbar-block-right'}) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
@@ -197,8 +197,8 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% set symfony_status = { dev: 'In Development', stable: 'Maintained', eom: 'Security Fixes Only', eol: 'Unmaintained' } %}
|
||||
{% set symfony_status_class = { dev: 'warning', stable: 'success', eom: 'warning', eol: 'error' } %}
|
||||
{% set symfony_status = {dev: 'In Development', stable: 'Maintained', eom: 'Security Fixes Only', eol: 'Unmaintained'} %}
|
||||
{% set symfony_status_class = {dev: 'warning', stable: 'success', eom: 'warning', eol: 'error'} %}
|
||||
|
||||
<div class="metrics">
|
||||
<div class="metric-group">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block head %}
|
||||
{% if collector.hasexception %}
|
||||
<style>
|
||||
{{ render(controller('web_profiler.controller.exception_panel::stylesheet', { token: token })) }}
|
||||
{{ render(controller('web_profiler.controller.exception_panel::stylesheet', {token: token})) }}
|
||||
{{ include('@WebProfiler/Collector/exception.css.twig') }}
|
||||
</style>
|
||||
{% endif %}
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="sf-reset">
|
||||
{{ render(controller('web_profiler.controller.exception_panel::body', { token: token })) }}
|
||||
{{ render(controller('web_profiler.controller.exception_panel::body', {token: token})) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{{ parent() }}
|
||||
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block toolbar %}
|
||||
{% if collector.requestCount %}
|
||||
{% set icon %}
|
||||
@@ -55,7 +54,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -106,10 +105,10 @@
|
||||
{% if trace.info.response_headers is defined %}
|
||||
{% for header in trace.info.response_headers %}
|
||||
{% if header matches '/^x-debug-token: .*$/i' %}
|
||||
{% set profiler_token = (header.getValue | slice('x-debug-token: ' | length)) %}
|
||||
{% set profiler_token = (header.getValue|slice('x-debug-token: '|length)) %}
|
||||
{% endif %}
|
||||
{% if header matches '/^x-debug-token-link: .*$/i' %}
|
||||
{% set profiler_link = (header.getValue | slice('x-debug-token-link: ' | length)) %}
|
||||
{% set profiler_link = (header.getValue|slice('x-debug-token-link: '|length)) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -138,7 +137,7 @@
|
||||
{% if trace.options is not empty %}
|
||||
<tr>
|
||||
<th class="font-normal">Request options</th>
|
||||
<td>{{ profiler_dump(trace.options, maxDepth=1) }}</td>
|
||||
<td>{{ profiler_dump(trace.options, maxDepth: 1) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
@@ -155,7 +154,7 @@
|
||||
{{ trace.http_code }}
|
||||
</span>
|
||||
|
||||
{{ profiler_dump(trace.info, maxDepth=1) }}
|
||||
{{ profiler_dump(trace.info, maxDepth: 1) }}
|
||||
</td>
|
||||
{% if profiler_token and profiler_link %}
|
||||
<td>
|
||||
|
||||
@@ -345,7 +345,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -568,13 +568,13 @@
|
||||
|
||||
{% if has_context %}
|
||||
<div id="{{ context_id }}" class="context sf-toggle-content sf-toggle-hidden">
|
||||
{{ profiler_dump(log.context, maxDepth=1) }}
|
||||
{{ profiler_dump(log.context, maxDepth: 1) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if has_trace %}
|
||||
<div id="{{ trace_id }}" class="context sf-toggle-content sf-toggle-hidden">
|
||||
{{ profiler_dump(log.context.exception.trace, maxDepth=1) }}
|
||||
{{ profiler_dump(log.context.exception.trace, maxDepth: 1) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
{{ parent() }}
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@@ -208,7 +208,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, name: 'time', status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, name: 'time', status: status_color}) }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
{% endfor %}
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: 'messenger', status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: 'messenger', status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
'#DD0000': 'var(--highlight-string)',
|
||||
'#007700': 'var(--highlight-keyword)',
|
||||
'#0000BB': 'var(--highlight-default)',
|
||||
'#FF8000': 'var(--highlight-comment)'
|
||||
'#FF8000': 'var(--highlight-comment)',
|
||||
})|raw }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -177,7 +177,7 @@
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th scope="row" class="font-normal">Message</th>
|
||||
<td>{{ profiler_dump(dispatchCall.message.value, maxDepth=2) }}</td>
|
||||
<td>{{ profiler_dump(dispatchCall.message.value, maxDepth: 2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="font-normal">Envelope stamps <span class="block text-muted">when dispatching</span></th>
|
||||
@@ -205,7 +205,7 @@
|
||||
<tr>
|
||||
<td class="text-bold">Exception</td>
|
||||
<td>
|
||||
{{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }}
|
||||
{{ profiler_dump(dispatchCall.exception.value, maxDepth: 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
{% endfor %}
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</b>
|
||||
<span>
|
||||
{{ redirect_handler }}
|
||||
(<a href="{{ path('_profiler', { token: collector.redirect.token }) }}">{{ collector.redirect.token }}</a>)
|
||||
(<a href="{{ path('_profiler', {token: collector.redirect.token}) }}">{{ collector.redirect.token }}</a>)
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,14 +109,14 @@
|
||||
<b>Forwarded to</b>
|
||||
<span>
|
||||
{{ forward_handler }}
|
||||
(<a href="{{ path('_profiler', { token: collector.forwardtoken }) }}">{{ collector.forwardtoken }}</a>)
|
||||
(<a href="{{ path('_profiler', {token: collector.forwardtoken}) }}">{{ collector.forwardtoken }}</a>)
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
@@ -161,7 +161,7 @@
|
||||
<p>No GET parameters</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestquery, maxDepth: 1 }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestquery, maxDepth: 1}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>POST Parameters</h3>
|
||||
@@ -171,7 +171,7 @@
|
||||
<p>No POST parameters</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestrequest, maxDepth: 1 }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestrequest, maxDepth: 1}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h4>Uploaded Files</h4>
|
||||
@@ -181,7 +181,7 @@
|
||||
<p>No files were uploaded</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestfiles, maxDepth: 1 }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestfiles, maxDepth: 1}, with_context: false) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -192,11 +192,11 @@
|
||||
<p>No attributes</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestattributes }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestattributes}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>Request Headers</h3>
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestheaders, labels: ['Header', 'Value'], maxDepth: 1}, with_context: false) }}
|
||||
|
||||
<h3>Request Content</h3>
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
<div class="tab-content">
|
||||
<h3>Response Headers</h3>
|
||||
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responseheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.responseheaders, labels: ['Header', 'Value'], maxDepth: 1}, with_context: false) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
<p>No request cookies</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestcookies }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.requestcookies}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>Response Cookies</h3>
|
||||
@@ -266,7 +266,7 @@
|
||||
<p>No response cookies</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responsecookies }, with_context = true) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.responsecookies}, with_context: true) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -282,7 +282,7 @@
|
||||
<p>No session metadata</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionmetadata }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.sessionmetadata}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>Session Attributes</h3>
|
||||
@@ -292,7 +292,7 @@
|
||||
<p>No session attributes</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionattributes, labels: ['Attribute', 'Value'] }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.sessionattributes, labels: ['Attribute', 'Value']}, with_context: false) }}
|
||||
{% endif %}
|
||||
|
||||
<h3>Session Usage</h3>
|
||||
@@ -334,7 +334,7 @@
|
||||
<a class="btn btn-link text-small sf-toggle" data-toggle-selector="#{{ usage_id }}" data-toggle-alt-content="Hide trace">Show trace</a>
|
||||
</div>
|
||||
<div id="{{ usage_id }}" class="context sf-toggle-content sf-toggle-hidden">
|
||||
{{ profiler_dump(usage.trace, maxDepth=2) }}
|
||||
{{ profiler_dump(usage.trace, maxDepth: 2) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -356,7 +356,7 @@
|
||||
<p>No flash messages were created.</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.flashes }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: collector.flashes}, with_context: false) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -366,14 +366,14 @@
|
||||
<div class="tab-content">
|
||||
<h3>Server Parameters</h3>
|
||||
<h4>Defined in .env</h4>
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.dotenvvars }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: collector.dotenvvars}, with_context: false) }}
|
||||
|
||||
<h4>Defined as regular env variables</h4>
|
||||
{% set requestserver = [] %}
|
||||
{% for key, value in collector.requestserver|filter((_, key) => key not in collector.dotenvvars.keys) %}
|
||||
{% set requestserver = requestserver|merge({(key): value}) %}
|
||||
{% endfor %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: requestserver }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: requestserver}, with_context: false) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -383,11 +383,11 @@
|
||||
|
||||
<div class="tab-content">
|
||||
<h3>
|
||||
<a href="{{ path('_profiler', { token: profile.parent.token }) }}">Return to parent request</a>
|
||||
<a href="{{ path('_profiler', {token: profile.parent.token}) }}">Return to parent request</a>
|
||||
<small>(token = {{ profile.parent.token }})</small>
|
||||
</h3>
|
||||
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: profile.parent.getcollector('request').requestattributes }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: profile.parent.getcollector('request').requestattributes}, with_context: false) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -400,10 +400,10 @@
|
||||
{% for child in profile.children %}
|
||||
<h3>
|
||||
{{ _self.set_handler(child.getcollector('request').controller) }}
|
||||
<small>(token = <a href="{{ path('_profiler', { token: child.token }) }}">{{ child.token }}</a>)</small>
|
||||
<small>(token = <a href="{{ path('_profiler', {token: child.token}) }}">{{ child.token }}</a>)</small>
|
||||
</h3>
|
||||
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: child.getcollector('request').requestattributes }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/bag.html.twig', {bag: child.getcollector('request').requestattributes}, with_context: false) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
{{ render(controller('web_profiler.controller.router::panelAction', { token: token })) }}
|
||||
{{ render(controller('web_profiler.controller.router::panelAction', {token: token})) }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
'#DD0000': 'var(--highlight-string)',
|
||||
'#007700': 'var(--highlight-keyword)',
|
||||
'#0000BB': 'var(--highlight-default)',
|
||||
'#FF8000': 'var(--highlight-comment)'
|
||||
'#FF8000': 'var(--highlight-comment)',
|
||||
})|raw }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
@@ -146,7 +146,7 @@
|
||||
Sub-{{ profile_type|title }} {{ profiler_dump(profile.getcollector('request').requestattributes.get('_controller')) }}
|
||||
<small>
|
||||
{{ collector.events.__section__.duration }} ms
|
||||
<a class="newline" href="{{ path('_profiler', { token: profile.parent.token, panel: 'time' }) }}">Return to parent {{ profile_type }}</a>
|
||||
<a class="newline" href="{{ path('_profiler', {token: profile.parent.token, panel: 'time'}) }}">Return to parent {{ profile_type }}</a>
|
||||
</small>
|
||||
</h3>
|
||||
{% elseif profile.children|length > 0 %}
|
||||
@@ -165,7 +165,7 @@
|
||||
{% for child in profile.children %}
|
||||
{% set events = child.getcollector('time').events %}
|
||||
<h4>
|
||||
<a href="{{ path('_profiler', { token: child.token, panel: 'time' }) }}">{{ child.getcollector('request').identifier }}</a>
|
||||
<a href="{{ path('_profiler', {token: child.token, panel: 'time'}) }}">{{ child.getcollector('request').identifier }}</a>
|
||||
<small>{{ events.__section__.duration }} ms</small>
|
||||
</h4>
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
{% autoescape 'js' %}
|
||||
{
|
||||
id: "{{ token }}",
|
||||
left: {{ "%F"|format(events.__section__.origin - origin) }},
|
||||
left: {{ '%F'|format(events.__section__.origin - origin) }},
|
||||
end: "{{ '%F'|format(events.__section__.endtime) }}",
|
||||
events: [ {{ _self.dump_events(events) }} ],
|
||||
}
|
||||
@@ -206,18 +206,18 @@
|
||||
{
|
||||
name: "{{ name }}",
|
||||
category: "{{ event.category }}",
|
||||
origin: {{ "%F"|format(event.origin) }},
|
||||
starttime: {{ "%F"|format(event.starttime) }},
|
||||
endtime: {{ "%F"|format(event.endtime) }},
|
||||
duration: {{ "%F"|format(event.duration) }},
|
||||
memory: {{ "%.1F"|format(event.memory / 1024 / 1024) }},
|
||||
origin: {{ '%F'|format(event.origin) }},
|
||||
starttime: {{ '%F'|format(event.starttime) }},
|
||||
endtime: {{ '%F'|format(event.endtime) }},
|
||||
duration: {{ '%F'|format(event.duration) }},
|
||||
memory: {{ '%.1F'|format(event.memory / 1024 / 1024) }},
|
||||
elements: {},
|
||||
periods: [
|
||||
{%- for period in event.periods -%}
|
||||
{
|
||||
start: {{ "%F"|format(period.starttime) }},
|
||||
end: {{ "%F"|format(period.endtime) }},
|
||||
duration: {{ "%F"|format(period.duration) }},
|
||||
start: {{ '%F'|format(period.starttime) }},
|
||||
end: {{ '%F'|format(period.endtime) }},
|
||||
duration: {{ '%F'|format(period.duration) }},
|
||||
elements: {}
|
||||
},
|
||||
{%- endfor -%}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
|
||||
<div id="parameters-{{ loop.index }}" class="hidden">
|
||||
{% for parameters in message.parameters %}
|
||||
{{ profiler_dump(parameters, maxDepth=1) }}
|
||||
{{ profiler_dump(parameters, maxDepth: 1) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url, status: status_color}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -92,13 +92,13 @@
|
||||
'#DD0000': 'var(--highlight-string)',
|
||||
'#007700': 'var(--highlight-keyword)',
|
||||
'#0000BB': 'var(--highlight-default)',
|
||||
'#FF8000': 'var(--highlight-comment)'
|
||||
'#FF8000': 'var(--highlight-comment)',
|
||||
})|raw }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sf-validator-compact hidden sf-validator-context" id="sf-context-{{ loop.index0 }}">
|
||||
{{ profiler_dump(call.context, maxDepth=1) }}
|
||||
{{ profiler_dump(call.context, maxDepth: 1) }}
|
||||
</div>
|
||||
|
||||
{% if call.violations|length %}
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<dt>Application</dt>
|
||||
<dd>
|
||||
<a href="{{ path('_profiler_search_results', { token: token, limit: 10, ip: profile.ip, type: 'command' }) }}">{{ profile.ip }}</a>
|
||||
<a href="{{ path('_profiler_search_results', {token: token, limit: 10, ip: profile.ip, type: 'command'}) }}">{{ profile.ip }}</a>
|
||||
</dd>
|
||||
|
||||
<dt>Profiled on</dt>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
{{ redirect_route_name }}
|
||||
{% endif %}
|
||||
|
||||
(<a href="{{ path('_profiler', { token: redirect.token, panel: request.query.get('panel', 'request') }) }}">{{ redirect.token }}</a>)
|
||||
(<a href="{{ path('_profiler', {token: redirect.token, panel: request.query.get('panel', 'request')}) }}">{{ redirect.token }}</a>)
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
<dt>IP</dt>
|
||||
<dd>
|
||||
<a href="{{ path('_profiler_search_results', { token: token, limit: 10, ip: profile.ip }) }}">{{ profile.ip }}</a>
|
||||
<a href="{{ path('_profiler_search_results', {token: token, limit: 10, ip: profile.ip}) }}">{{ profile.ip }}</a>
|
||||
</dd>
|
||||
|
||||
<dt>Profiled on</dt>
|
||||
@@ -93,7 +93,7 @@
|
||||
{{- controller -}}
|
||||
{% endif %}
|
||||
{%- if link %}</a>{% endif %}
|
||||
(<a href="{{ path('_profiler', { token: request_collector.forwardtoken }) }}">{{ request_collector.forwardtoken }}</a>)
|
||||
(<a href="{{ path('_profiler', {token: request_collector.forwardtoken}) }}">{{ request_collector.forwardtoken }}</a>)
|
||||
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{% for key in bag.keys|sort %}
|
||||
<tr>
|
||||
<th>{{ key }}</th>
|
||||
<td>{{ profiler_dump(bag.get(key), maxDepth=maxDepth|default(0)) }}</td>
|
||||
<td>{{ profiler_dump(bag.get(key), maxDepth: maxDepth|default(0)) }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
|
||||
@@ -21,5 +21,5 @@
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {link: profiler_url}) }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
||||
|
||||
{% set messages = {
|
||||
'no_token' : {
|
||||
status: 'error',
|
||||
title: (token|default('') == 'latest') ? 'There are no profiles' : 'Token not found',
|
||||
message: (token|default('') == 'latest') ? 'No profiles found.' : 'Token "' ~ token|default('') ~ '" not found.'
|
||||
}
|
||||
no_token: {
|
||||
status: 'error',
|
||||
title: (token|default('') == 'latest') ? 'There are no profiles' : 'Token not found',
|
||||
message: (token|default('') == 'latest') ? 'No profiles found.' : 'Token "' ~ token|default('') ~ '" not found.',
|
||||
},
|
||||
} %}
|
||||
|
||||
{% block summary %}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', {profile_type: profile_type}, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', {profile_type: profile_type}, with_context: false) }}
|
||||
|
||||
<div id="summary">
|
||||
{% block summary %}
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
{{ include('@WebProfiler/Profiler/_%s_summary.html.twig'|format(profile_type), {
|
||||
profile: profile,
|
||||
command_collector: profile.collectors.command|default(false) ,
|
||||
command_collector: profile.collectors.command|default(false),
|
||||
request_collector: request_collector,
|
||||
request: request,
|
||||
token: token
|
||||
}, with_context=false) }}
|
||||
token: token,
|
||||
}, with_context: false) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
@@ -28,8 +28,8 @@
|
||||
<div id="sidebar-shortcuts">
|
||||
{% block sidebar_shortcuts_links %}
|
||||
<div class="shortcuts">
|
||||
<a class="btn btn-link" href="{{ path('_profiler_search', { limit: 10, type: profile_type }) }}">{{ source('@WebProfiler/Icon/search.svg') }} Search profiles</a>
|
||||
<a class="btn btn-link" href="{{ path('_profiler', { token: 'latest', type: profile_type }|merge(request.query.all)) }}">Latest</a>
|
||||
<a class="btn btn-link" href="{{ path('_profiler_search', {limit: 10, type: profile_type}) }}">{{ source('@WebProfiler/Icon/search.svg') }} Search profiles</a>
|
||||
<a class="btn btn-link" href="{{ path('_profiler', {token: 'latest', type: profile_type}|merge(request.query.all)) }}">Latest</a>
|
||||
</div>
|
||||
{% endblock sidebar_shortcuts_links %}
|
||||
</div>
|
||||
@@ -45,14 +45,14 @@
|
||||
{% for name, template in templates|filter((t, n) => n not in excludes) %}
|
||||
{% set menu -%}
|
||||
{%- if block('menu', template) is defined -%}
|
||||
{% with { collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version } %}
|
||||
{% with {collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version} %}
|
||||
{{- block('menu', template) -}}
|
||||
{% endwith %}
|
||||
{%- endif -%}
|
||||
{%- endset %}
|
||||
{% if menu is not empty %}
|
||||
<li class="{{ name }} {{ name == panel ? 'selected' }}">
|
||||
<a href="{{ path('_profiler', { token: token, panel: name, type: profile_type }) }}">{{ menu|raw }}</a>
|
||||
<a href="{{ path('_profiler', {token: token, panel: name, type: profile_type}) }}">{{ menu|raw }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', with_context: false) }}
|
||||
|
||||
{% set source = file_info.pathname|file_excerpt(line, -1) %}
|
||||
<div id="content">
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<dt>Size:</dt>
|
||||
{% set file_size_in_kb = file_info.size / 1024 %}
|
||||
{% set file_num_lines = source|split("\n")|length - 1 %}
|
||||
{% set file_num_lines = source|split('\n')|length - 1 %}
|
||||
<dd>
|
||||
{{ file_size_in_kb < 1 ? file_info.size ~ ' bytes' : file_size_in_kb|number_format(0) ~ ' KB' }}
|
||||
/ {{ file_num_lines }} lines
|
||||
|
||||
@@ -1854,7 +1854,6 @@ body.theme-dark #collector-content .sf-dump .trace li.selected {
|
||||
background: rgba(255, 255, 153, 0.5);
|
||||
}
|
||||
|
||||
|
||||
{# Doctrine panel
|
||||
========================================================================= #}
|
||||
.sql-runnable {
|
||||
@@ -1957,4 +1956,3 @@ body.width-full .container {
|
||||
@media (min-width: 1200px) {
|
||||
body.width-full .container { margin: 0 30px; }
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% macro profile_search_filter(request, result, property) %}
|
||||
{%- if request.hasSession -%}
|
||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({token: result.token})|merge({ (property): result[property] })) }}" title="Search"><span title="Search" class="sf-icon sf-search">{{ source('@WebProfiler/Icon/search.svg') }}</span></a>
|
||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({token: result.token})|merge({(property): result[property]})) }}" title="Search"><span title="Search" class="sf-icon sf-search">{{ source('@WebProfiler/Icon/search.svg') }}</span></a>
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
{% block sidebar_search_css_class %}{% endblock %}
|
||||
{% block sidebar_shortcuts_links %}
|
||||
{{ parent() }}
|
||||
{{ render(controller('web_profiler.controller.profiler::searchBarAction', query={type: profile_type }|merge(request.query.all))) }}
|
||||
{{ render(controller('web_profiler.controller.profiler::searchBarAction', query: {type: profile_type}|merge(request.query.all))) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
@@ -124,7 +124,7 @@
|
||||
{{ result.time|date('H:i:s') }}
|
||||
</time>
|
||||
</td>
|
||||
<td class="nowrap"><a href="{{ path('_profiler', { token: result.token }) }}">{{ result.token }}</a></td>
|
||||
<td class="nowrap"><a href="{{ path('_profiler', {token: result.token}) }}">{{ result.token }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
name: name,
|
||||
profiler_markup_version: profiler_markup_version,
|
||||
csp_script_nonce: csp_script_nonce,
|
||||
csp_style_nonce: csp_style_nonce
|
||||
csp_style_nonce: csp_style_nonce,
|
||||
} %}
|
||||
{{ block('toolbar', template) }}
|
||||
{% endwith %}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }} {{ additional_classes|default('') }}" {{ block_attrs|default('')|raw }}>
|
||||
{% if link is not defined or link %}<a href="{{ url('_profiler', { token: token, panel: name }) }}">{% endif %}
|
||||
{% if link is not defined or link %}<a href="{{ url('_profiler', {token: token, panel: name}) }}">{% endif %}
|
||||
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
|
||||
{% if link|default(false) %}</a>{% endif %}
|
||||
<div class="sf-toolbar-info">{{ text|default('') }}</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div id="sfwdt{{ token }}" class="sf-toolbar sf-toolbar-opened" role="region" aria-label="Symfony Web Debug Toolbar">
|
||||
{{ include('@WebProfiler/Profiler/toolbar.html.twig', {
|
||||
templates: {
|
||||
'request': '@WebProfiler/Profiler/cancel.html.twig'
|
||||
request: '@WebProfiler/Profiler/cancel.html.twig',
|
||||
},
|
||||
profile: null,
|
||||
profiler_url: url('_profiler', {token: token}),
|
||||
@@ -510,7 +510,7 @@
|
||||
|
||||
this.load(
|
||||
'sfwdt' + token,
|
||||
'{{ url("_wdt", { "token": "xxxxxx" })|escape('js') }}'.replace(/xxxxxx/, newToken),
|
||||
'{{ url('_wdt', {token: 'xxxxxx'})|escape('js') }}'.replace(/xxxxxx/, newToken),
|
||||
function(xhr, el) {
|
||||
/* Do nothing in the edge case where the toolbar has already been replaced with a new one */
|
||||
if (!document.getElementById('sfToolbarMainContent-' + newToken)) {
|
||||
@@ -593,7 +593,7 @@
|
||||
sfwdt.innerHTML = '\
|
||||
<div class="sf-toolbarreset notranslate">\
|
||||
<div class="sf-toolbar-icon"><svg width="26" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 26 28" enable-background="new 0 0 26 28" xml:space="preserve"><path fill="#FFFFFF" d="M13 0C5.8 0 0 5.8 0 13c0 7.2 5.8 13 13 13c7.2 0 13-5.8 13-13C26 5.8 20.2 0 13 0z M20 7.5 c-0.6 0-1-0.3-1-0.9c0-0.2 0-0.4 0.2-0.6c0.1-0.3 0.2-0.3 0.2-0.4c0-0.3-0.5-0.4-0.7-0.4c-2 0.1-2.5 2.7-2.9 4.8l-0.2 1.1 c1.1 0.2 1.9 0 2.4-0.3c0.6-0.4-0.2-0.8-0.1-1.3C18 9.2 18.4 9 18.7 8.9c0.5 0 0.8 0.5 0.8 1c0 0.8-1.1 2-3.3 1.9 c-0.3 0-0.5 0-0.7-0.1L15 14.1c-0.4 1.7-0.9 4.1-2.6 6.2c-1.5 1.8-3.1 2.1-3.8 2.1c-1.3 0-2.1-0.6-2.2-1.6c0-0.9 0.8-1.4 1.3-1.4 c0.7 0 1.2 0.5 1.2 1.1c0 0.5-0.2 0.6-0.4 0.7c-0.1 0.1-0.3 0.2-0.3 0.4c0 0.1 0.1 0.3 0.4 0.3c0.5 0 0.9-0.3 1.2-0.5 c1.3-1 1.7-2.9 2.4-6.2l0.1-0.8c0.2-1.1 0.5-2.3 0.8-3.5c-0.9-0.7-1.4-1.5-2.6-1.8c-0.8-0.2-1.3 0-1.7 0.4C8.4 10 8.6 10.7 9 11.1 l0.7 0.7c0.8 0.9 1.3 1.7 1.1 2.7c-0.3 1.6-2.1 2.8-4.3 2.1c-1.9-0.6-2.2-1.9-2-2.7c0.2-0.6 0.7-0.8 1.2-0.6 c0.5 0.2 0.7 0.8 0.6 1.3c0 0.1 0 0.1-0.1 0.3C6 15 5.9 15.2 5.9 15.3c-0.1 0.4 0.4 0.7 0.8 0.8c0.8 0.3 1.7-0.2 1.9-0.9 c0.2-0.6-0.2-1.1-0.4-1.2l-0.8-0.9c-0.4-0.4-1.2-1.5-0.8-2.8c0.2-0.5 0.5-1 0.9-1.4c1-0.7 2-0.8 3-0.6c1.3 0.4 1.9 1.2 2.8 1.9 c0.5-1.3 1.1-2.6 2-3.8c0.9-1 2-1.7 3.3-1.8C20 4.8 21 5.4 21 6.3C21 6.7 20.8 7.5 20 7.5z"/></svg></div>\
|
||||
An error occurred while loading the web debug toolbar. <a href="{{ url("_profiler_home")|escape('js') }}' + newToken + '">Open the web profiler.</a>\
|
||||
An error occurred while loading the web debug toolbar. <a href="{{ url('_profiler_home')|escape('js') }}' + newToken + '">Open the web profiler.</a>\
|
||||
</div>\
|
||||
';
|
||||
sfwdt.setAttribute('class', 'sf-toolbar sf-error-toolbar');
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
{% block title 'Redirection Intercepted' %}
|
||||
|
||||
|
||||
{% block head %}
|
||||
{{ parent() }}
|
||||
|
||||
@@ -33,7 +32,7 @@
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', with_context: false) }}
|
||||
|
||||
<div class="sf-reset sf-redirection-details">
|
||||
<div class="block-exception">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<p>No parameters.</p>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', { data: request.routeParams, labels: ['Name', 'Value'] }, with_context = false) }}
|
||||
{{ include('@WebProfiler/Profiler/table.html.twig', {data: request.routeParams, labels: ['Name', 'Value']}, with_context: false) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"symfony/http-kernel": "^6.4.13|^7.1.6|^8.0",
|
||||
"symfony/routing": "^6.4|^7.0|^8.0",
|
||||
"symfony/twig-bundle": "^6.4|^7.0|^8.0",
|
||||
"twig/twig": "^3.12"
|
||||
"twig/twig": "^3.15"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/browser-kit": "^6.4|^7.0|^8.0",
|
||||
|
||||
Reference in New Issue
Block a user