src/SymfonyHttpBridge.php
public function convertInfuseResponse(Response $res)
    {
        $response = new SymfonyResponse($res->getBody(), $res->getCode(), $res->headers());

        // transfer cookies
        foreach ($res->cookies() as $name => $params) {
            list($value, $expire, $path, $domain, $secure, $httponly) = $params;
            $cookie = new Cookie($name, $value, $expire, $path, $domain, $secure, $httponly);
            $response->headers->setCookie($cookie);
        }

        return $response;
    }
public function convertInfuseResponse(Response $res)
    {
        $response = new SymfonyResponse($res->getBody(), $res->getCode(), $res->headers());

        // transfer cookies
        foreach ($res->cookies() as $name => $params) {
            list($value, $expire, $path, $domain, $secure, $httponly) = $params;
            $cookie = new Cookie($name, $value, $expire, $path, $domain, $secure, $httponly);
            $response->headers->setCookie($cookie);
        }

        return $response;
    }
public function convertInfuseResponse ( Response $ res ) { $ response = new SymfonyResponse ( $ res -> getBody ( ) , $ res -> getCode ( ) , $ res -> headers ( ) ) ; // transfer cookies foreach ( $ res -> cookies ( ) as $ name => $ params ) { list ( $ value , $ expire , $ path , $ domain , $ secure , $ httponly ) = $ params ; $ cookie = new Cookie ( $ name , $ value , $ expire , $ path , $ domain , $ secure , $ httponly ) ; $ response -> headers -> setCookie ( $ cookie ) ; } return $ response ; }
Converts an Infuse response object into a Symfony response object.

@param Response $res

@return SymfonyResponse
Converts an Infuse response object into a Symfony response object .