src/ServiceProvider.php
public function register()
    {
        $displayer = new BasicDisplayer;
        $handler = new Handler($displayer);
        $this->container->bind('error', $handler);
    }
public function register()
    {
        $displayer = new BasicDisplayer;
        $handler = new Handler($displayer);
        $this->container->bind('error', $handler);
    }
public function register ( ) { $ displayer = new BasicDisplayer ; $ handler = new Handler ( $ displayer ) ; $ this -> container -> bind ( 'error' , $ handler ) ; }
Register the error handler into the container.

@return void
Register the error handler into the container .