8000 bug #42830 [HttpKernel] Fix empty timeline in profiler (nicodmf) · symfony/symfony@ced4415 · GitHub
[go: up one dir, main page]

Skip to content

Commit ced4415

Browse files
committed
bug #42830 [HttpKernel] Fix empty timeline in profiler (nicodmf)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] Fix empty timeline in profiler Simple fix to #42804 | Q | A | ------------- | --- | Branch? | 5.3 && 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #42804 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Fix #42804 following #42331 conventions Another solution could be found here #42823 <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry --> Commits ------- f1b3840 [HttpKernel] Fix timeline in profiler
2 parents 1b496a0 + f1b3840 commit ced4415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function collect(Request $request, Response $response/*, \Throwable $exce
4747
}
4848

4949
$this->data = [
50-
'token' => $response->headers->get('X-Debug-Token'),
50+
'token' => $request->attributes->get('_stopwatch_token'),
5151
'start_time' => $startTime * 1000,
5252
'events' => [],
5353
'stopwatch_installed' => class_exists(Stopwatch::class, false),

0 commit comments

Comments
 (0)
0