public function register()
    {
        $container = $this->container;
        $console = new Console('EncorePHP', $container::VERSION);

        $this->container->bind('console', $console);

        if ($this->container->bound('error')) {
            $this->container['error']->setDisplayer(new ConsoleDisplayer($console));
        }
    }
public function register()
    {
        $container = $this->container;
        $console = new Console('EncorePHP', $container::VERSION);

        $this->container->bind('console', $console);

        if ($this->container->bound('error')) {
            $this->container['error']->setDisplayer(new ConsoleDisplayer($console));
        }
    }
public function register ( ) { $ container = $ this -> container ; $ console = new Console ( 'EncorePHP' , $ container :: VERSION ) ; $ this -> container -> bind ( 'console' , $ console ) ; if ( $ this -> container -> bound ( 'error' ) ) { $ this -> container [ 'error' ] -> setDisplayer ( new ConsoleDisplayer ( $ console ) ) ; } }
Register the console into the container.

@return void
Register the console into the container .