Newscoop\GimmeBundle\Controller\ExceptionController::getFormat PHP Method

getFormat() protected method

Determine the format to use for the response
protected getFormat ( Request $request, string $format ) : string
$request Symfony\Component\HttpFoundation\Request Request instance
$format string The format to use for rendering (html, xml, ...)
return string Encoding format
    protected function getFormat(Request $request, $format)
    {
        return 'json';
    }