public function registerRouter()
    {
        $this->app->singleton('router', function ($app) {
            return new Router(
                $app['routes.collection'],
                $app['wpconditions'],
                $app
            );
        });

        $this->app->alias('router', Router::class);
    }
public function registerRouter()
    {
        $this->app->singleton('router', function ($app) {
            return new Router(
                $app['routes.collection'],
                $app['wpconditions'],
                $app
            );
        });

        $this->app->alias('router', Router::class);
    }
public function registerRouter ( ) { $ this -> app -> singleton ( 'router' , function ( $ app ) { return new Router ( $ app [ 'routes.collection' ] , $ app [ 'wpconditions' ] , $ app ) ; } ) ; $ this -> app -> alias ( 'router' , Router :: class ) ; }
Register router instance.

@return void
Register router instance .