Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6c0dc6

Browse files
committed
[WebProfilerBundle] Improve controller linking
1 parent 32cc2e0 commit f6c0dc6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@
4949
<span>{{ request_handler }}</span>
5050
</div>
5151

52-
{% if collector.controller.class is defined -%}
53-
<div class="sf-toolbar-info-piece">
54-
<b>Controller class</b>
55-
<span>{{ collector.controller.class }}</span>
56-
</div>
57-
{%- endif %}
58-
5952
<div class="sf-toolbar-info-piece">
6053
<b>Route name</b>
6154
<span>{{ collector.route|default('NONE') }}</span>
@@ -297,7 +290,7 @@
297290
{% if controller.class is defined -%}
298291
{%- if method|default(false) %}<span class="sf-toolbar-status sf-toolbar-redirection-method">{{ method }}</span>{% endif -%}
299292
{%- set link = controller.file|file_link(controller.line) %}
300-
{%- if link %}<a href="{{ link }}" title="{{ controller.file }}">{% else %}<span>{% endif %}
293+
{%- if link %}<a href="{{ link }}" title="{{ controller.class }}">{% else %}<span title="{{ controller.class }}">{% endif %}
301294

302295
{%- if route|default(false) -%}
303296
@{{ route }}

0 commit comments

Comments
 (0)