bug #22874 [WebProfilerBundle] Fix sub-requests display in time profiler panel (nicolas-grekas)

This PR was merged into the 3.2 branch.

Discussion
----------

[WebProfilerBundle] Fix sub-requests display in time profiler panel

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21911
| License       | MIT
| Doc PR        | -

Commits
-------

d715cc4a27 [WebProfilerBundle] Fix sub-requests display in time profiler panel
This commit is contained in:
Fabien Potencier 2017-05-24 08:36:19 +02:00
commit c2ffa619a3

View File

@ -107,8 +107,8 @@
</form>
{% if profile.parent %}
<h3>
Sub-Request {{ profile.getcollector('request').requestattributes.get('_controller') }}
<h3 class="dump-inline">
Sub-Request {{ 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 request</a>