original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Converts an Infuse response object into a Symfony response object.
  
  @param Response $res
  
  @return SymfonyResponse
docstring_tokens: Converts an Infuse response object into a Symfony response object .