Skip to content

Commit 0d67058

Browse files
bug #51396 [HttpKernel] Fix missing Request in RequestStack for StreamedResponse (Ismail Turan)
This PR was merged into the 6.3 branch. Discussion ---------- [HttpKernel] Fix missing Request in RequestStack for StreamedResponse | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46743 | License | MIT | Doc PR | - Similar to #51139 by `@DaDeather`, see discussion there. Commits ------- ca1c40e66d [HttpKernel] Fix missing Request in RequestStack for StreamedResponse
2 parents 490f003 + cded175 commit 0d67058

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

StreamedResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public function setCallback(callable $callback): static
5656
return $this;
5757
}
5858

59+
public function getCallback(): \Closure
60+
{
61+
return ($this->callback)(...);
62+
}
63+
5964
/**
6065
* This method only sends the headers once.
6166
*

0 commit comments

Comments
 (0)