Skip to content

Commit cded175

Browse files
Ismail Turannicolas-grekas
authored andcommitted
[HttpKernel] Fix missing Request in RequestStack for StreamedResponse
1 parent 43ed99d commit cded175

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)