EventListener/ExceptionListener.php
private function getHeaders(\Exception $exception)
    {
        $headers = $this->default['headers'];

        if ($exception instanceof SymfonyHttpExceptionInterface
            || $exception instanceof HttpExceptionInterface
        ) {
            $headers = $exception->getHeaders();
        }

        return $headers;
    }
private function getHeaders(\Exception $exception)
    {
        $headers = $this->default['headers'];

        if ($exception instanceof SymfonyHttpExceptionInterface
            || $exception instanceof HttpExceptionInterface
        ) {
            $headers = $exception->getHeaders();
        }

        return $headers;
    }
private function getHeaders ( \ Exception $ exception ) { $ headers = $ this -> default [ 'headers' ] ; if ( $ exception instanceof SymfonyHttpExceptionInterface || $ exception instanceof HttpExceptionInterface ) { $ headers = $ exception -> getHeaders ( ) ; } return $ headers ; }
Get exception headers

@param \Exception $exception

@return array
Get exception headers