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

Skip to content

Commit f1b3840

Browse files
authored
[HttpKernel] Fix timeline in profiler
Simple fix to #42804
1 parent 1b496a0 commit f1b3840

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)