Skip to content

Commit c2beee9

Browse files
committed
[WebProfiler] Use ControllerReference instead of URL in twig render()
1 parent 8442887 commit c2beee9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Resources/views/Collector/exception.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block head %}
44
{% if collector.hasexception %}
55
<style>
6-
{{ render(path('_profiler_exception_css', { token: token })) }}
6+
{{ render(controller('web_profiler.controller.exception_panel::stylesheet', { token: token })) }}
77
{{ include('@WebProfiler/Collector/exception.css.twig') }}
88
</style>
99
{% endif %}
@@ -31,7 +31,7 @@
3131
</div>
3232
{% else %}
3333
<div class="sf-reset">
34-
{{ render(path('_profiler_exception', { token: token })) }}
34+
{{ render(controller('web_profiler.controller.exception_panel::body', { token: token })) }}
3535
</div>
3636
{% endif %}
3737
{% endblock %}

Resources/views/Collector/router.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
{% endblock %}
1111

1212
{% block panel %}
13-
{{ render(path('_profiler_router', { token: token })) }}
13+
{{ render(controller('web_profiler.controller.router::panelAction', { token: token })) }}
1414
{% endblock %}

Resources/views/Profiler/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
{{ include('@WebProfiler/Icon/search.svg') }} <span class="hidden-small">Search</span>
109109
</a>
110110

111-
{{ render(path('_profiler_search_bar', request.query.all)) }}
111+
{{ render(controller('web_profiler.controller.profiler::searchBarAction', request.query.all)) }}
112112
</div>
113113
</div>
114114

0 commit comments

Comments
 (0)