protected function convertExceptionToResponse(Exception $e, Request $request)
    {
        $debug = Config::get('app.debug');

        //
        $e = FlattenException::create($e);

        $handler = new SymfonyExceptionHandler($debug);

        return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
    }
protected function convertExceptionToResponse(Exception $e, Request $request)
    {
        $debug = Config::get('app.debug');

        //
        $e = FlattenException::create($e);

        $handler = new SymfonyExceptionHandler($debug);

        return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
    }
protected function convertExceptionToResponse ( Exception $ e , Request $ request ) { $ debug = Config :: get ( 'app.debug' ) ; // $ e = FlattenException :: create ( $ e ) ; $ handler = new SymfonyExceptionHandler ( $ debug ) ; return SymfonyResponse :: create ( $ handler -> getHtml ( $ e ) , $ e -> getStatusCode ( ) , $ e -> getHeaders ( ) ) ; }
Convert the given exception into a Response instance.

@param  \Exception  $e
@return \Symfony\Component\HttpFoundation\Response
Convert the given exception into a Response instance .