private function getTemplateData($currentContent, $code, \Exception $exception, DebugLoggerInterface $logger = null)
    {
        return [
            'exception' => FlattenException::create($exception),
            'status' => 'error',
            'status_code' => $code,
            'status_text' => array_key_exists($code, Response::$statusTexts) ? Response::$statusTexts[$code] : 'error',
            'currentContent' => $currentContent,
            'logger' => $logger,
        ];
    }
private function getTemplateData($currentContent, $code, \Exception $exception, DebugLoggerInterface $logger = null)
    {
        return [
            'exception' => FlattenException::create($exception),
            'status' => 'error',
            'status_code' => $code,
            'status_text' => array_key_exists($code, Response::$statusTexts) ? Response::$statusTexts[$code] : 'error',
            'currentContent' => $currentContent,
            'logger' => $logger,
        ];
    }
private function getTemplateData ( $ currentContent , $ code , \ Exception $ exception , DebugLoggerInterface $ logger = null ) { return [ 'exception' => FlattenException :: create ( $ exception ) , 'status' => 'error' , 'status_code' => $ code , 'status_text' => array_key_exists ( $ code , Response :: $ statusTexts ) ? Response :: $ statusTexts [ $ code ] : 'error' , 'currentContent' => $ currentContent , 'logger' => $ logger , ] ; }
Determines the template parameters to pass to the view layer.

@param string               $currentContent
@param int                  $code
@param \Exception           $exception
@param DebugLoggerInterface $logger

@return array
Determines the template parameters to pass to the view layer .