public function createResponse()
    {
        $response = $this->format();
        $response->headers->set('content-type', $this->getContentType());
        $response->setStatusCode($this->getStatusCode());
        $response->setCharset('UTF-8');

        return $response;
    }
public function createResponse()
    {
        $response = $this->format();
        $response->headers->set('content-type', $this->getContentType());
        $response->setStatusCode($this->getStatusCode());
        $response->setCharset('UTF-8');

        return $response;
    }
public function createResponse ( ) { $ response = $ this -> format ( ) ; $ response -> headers -> set ( 'content-type' , $ this -> getContentType ( ) ) ; $ response -> setStatusCode ( $ this -> getStatusCode ( ) ) ; $ response -> setCharset ( 'UTF-8' ) ; return $ response ; }
Creates a Symfony Response

@return Response
Creates a Symfony Response