Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ced4415

Browse filesBrowse 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
Copy full SHA for ced4415

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.