protected function convertResponse(ResponseInterface $response)
    {
        $this->response->setContent($response->getBody());
        $this->response->setStatusCode($response->getStatusCode());
        foreach ($response->getHeaders() as $name => $values) {
            $this->response->setHeader($name, implode(', ', $values));
        }

        return $this->response;
    }
protected function convertResponse(ResponseInterface $response)
    {
        $this->response->setContent($response->getBody());
        $this->response->setStatusCode($response->getStatusCode());
        foreach ($response->getHeaders() as $name => $values) {
            $this->response->setHeader($name, implode(', ', $values));
        }

        return $this->response;
    }
protected function convertResponse ( ResponseInterface $ response ) { $ this -> response -> setContent ( $ response -> getBody ( ) ) ; $ this -> response -> setStatusCode ( $ response -> getStatusCode ( ) ) ; foreach ( $ response -> getHeaders ( ) as $ name => $ values ) { $ this -> response -> setHeader ( $ name , implode ( ', ' , $ values ) ) ; } return $ this -> response ; }
Convert Psr7 Response to Phalcon's response

@param ResponseInterface $response

@return \Phalcon\Http\Response|\Phalcon\Http\ResponseInterface
Convert Psr7 Response to Phalcon s response