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

Skip to content

Commit f074a6e

Browse files
committed
Do not show fqcn if we got an object
1 parent c462766 commit f074a6e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,22 @@
3232
{% for message in collector.messages %}
3333
<tr>
3434
<td>
35-
{{ message.message.type }}
36-
3735
{% if message.result.object is defined %}
3836
{{ profiler_dump(message.message.object, maxDepth=2) }}
37+
{% else %}
38+
{{ message.message.type }}
3939
{% endif %}
4040
</td>
4141
<td>
42-
{% if message.result.type is defined %}
42+
{% if message.result.object is defined %}
43+
{{ profiler_dump(message.result.object, maxDepth=2) }}
44+
{% elseif message.result.type is defined %}
4345
{{ message.result.type }}
4446
{% endif %}
4547

4648
{% if message.exception.type is defined %}
4749
{{ message.exception.type }}
4850
{% endif %}
49-
50-
{% if message.result.object is defined %}
51-
{{ profiler_dump(message.result.object, maxDepth=2) }}
52-
{% endif %}
5351
</td>
5452
</tr>
5553
{% endfor %}

0 commit comments

Comments
 (0)