Newscoop\GimmeBundle\Controller\ExceptionController::getFormat PHP Метод

getFormat() защищенный Метод

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, ...)
Результат string Encoding format
    protected function getFormat(Request $request, $format)
    {
        return 'json';
    }