JasonLewis\EnhancedRouter\EnhancedRouterServiceProvider::register PHP Метод

register() публичный Метод

Register the service provider.
public register ( ) : void
Результат void
    public function register()
    {
        $this->app['router'] = $this->app->share(function ($app) {
            $router = new Router($app);
            // If the current application environment is "testing", we will disable the
            // routing filters, since they can be tested independently of the routes
            // and just get in the way of our typical controller testing concerns.
            if ($app['env'] == 'testing') {
                $router->disableFilters();
            }
            return $router;
        });
    }
EnhancedRouterServiceProvider