src/helper/ErrorHandler.php
public function handle()
    {

        $view = $this->application->createInstance("view",
            [
                $this->application->response,
                $this->application->createInstance("viewengine", [$this->application->response]),
                $this->application
            ]
        );

        $view->setData("title", "An Error Occured");

        //Lets just show a pretty error page for now
        $this->application->response->send(  $view->render("errors/error") );
        //$this->response->send($this->view->render("errors/error"));

        //Don't execute any more handlers
        return Handler::LAST_HANDLER;

    }
public function handle()
    {

        $view = $this->application->createInstance("view",
            [
                $this->application->response,
                $this->application->createInstance("viewengine", [$this->application->response]),
                $this->application
            ]
        );

        $view->setData("title", "An Error Occured");

        //Lets just show a pretty error page for now
        $this->application->response->send(  $view->render("errors/error") );
        //$this->response->send($this->view->render("errors/error"));

        //Don't execute any more handlers
        return Handler::LAST_HANDLER;

    }
public function handle ( ) { $ view = $ this -> application -> createInstance ( "view" , [ $ this -> application -> response , $ this -> application -> createInstance ( "viewengine" , [ $ this -> application -> response ] ) , $ this -> application ] ) ; $ view -> setData ( "title" , "An Error Occured" ) ; //Lets just show a pretty error page for now $ this -> application -> response -> send ( $ view -> render ( "errors/error" ) ) ; //$this->response->send($this->view->render("errors/error")); //Don't execute any more handlers return Handler :: LAST_HANDLER ; }
WHOOPS INTERFACE METHODS
WHOOPS INTERFACE METHODS