Skip to content

Commit bb4c23d

Browse files
committed
Merge pull request #37 from andig/streams
Re-add simplistic StreamedResponse support
2 parents 2d40cb4 + d1d2165 commit bb4c23d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Bridges/HttpKernel.php

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Symfony\Component\HttpFoundation\Cookie;
1212
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
1313
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
14+
use Symfony\Component\HttpFoundation\StreamedResponse as SymfonyStreamedResponse;
1415
use Symfony\Component\HttpKernel\TerminableInterface;
1516

1617
class HttpKernel implements BridgeInterface
@@ -171,6 +172,9 @@ protected function mapResponse(HttpResponse $reactResponse, SymfonyResponse $syR
171172
}
172173

173174
$content = $syResponse->getContent();
175+
if ($syResponse instanceof SymfonyStreamedResponse) {
176+
$syResponse->sendContent();
177+
}
174178

175179
$nativeHeaders = [];
176180

0 commit comments

Comments
 (0)