protected function createResponse($content, $contentType)
    {
        $resp = new HttpResponse();

        $resp->setStatusCode(200)
             ->setContent($content);
        $resp->getHeaders()->addHeaders(array(
            'Content-Length'    => strlen($content),
            'Content-Type'      => $contentType
        ));
        return $resp;
    }
protected function createResponse($content, $contentType)
    {
        $resp = new HttpResponse();

        $resp->setStatusCode(200)
             ->setContent($content);
        $resp->getHeaders()->addHeaders(array(
            'Content-Length'    => strlen($content),
            'Content-Type'      => $contentType
        ));
        return $resp;
    }
protected function createResponse ( $ content , $ contentType ) { $ resp = new HttpResponse ( ) ; $ resp -> setStatusCode ( 200 ) -> setContent ( $ content ) ; $ resp -> getHeaders ( ) -> addHeaders ( array ( 'Content-Length' => strlen ( $ content ) , 'Content-Type' => $ contentType ) ) ; return $ resp ; }
Creates the response to be returned for a QR Code
@param $content
@param $contentType
@return HttpResponse
Creates the response to be returned for a QR Code