diff --git a/Bridge/Symfony/HttpFoundation/ResponseProcessor.php b/Bridge/Symfony/HttpFoundation/ResponseProcessor.php index 164e2b80..0672bb65 100644 --- a/Bridge/Symfony/HttpFoundation/ResponseProcessor.php +++ b/Bridge/Symfony/HttpFoundation/ResponseProcessor.php @@ -28,6 +28,18 @@ public function process(HttpFoundationResponse $httpFoundationResponse, SwooleRe } } + foreach ($httpFoundationResponse->headers->getCookies() as $cookie) { + $swooleResponse->cookie( + $cookie->getName(), + $cookie->getValue() ?? '', + $cookie->getExpiresTime(), + $cookie->getPath(), + $cookie->getDomain() ?? '', + $cookie->isSecure(), + $cookie->isHttpOnly() + ); + } + $swooleResponse->status($httpFoundationResponse->getStatusCode()); if ($httpFoundationResponse instanceof BinaryFileResponse) {