/** * Register the service provider. * * @return void */ public function register() { // Overcome router to my own implementation $this->app['router'] = $this->app->share(function ($app) { $router = new Router($app['events'], $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; }); // w.eloquent router by Cortex $this->app->bindShared('weloquent.route', function ($app) { return Container::instance()->get('cortex.api'); }); $this->registerUrlGenerator(); $this->registerRedirector(); }
/** * Register the service provider. * * @return void */ public function register() { $this->app->bindShared('weloquent.assets', function ($app) { return Container::instance()->get('occipital.api'); }); }
/** * Register the service provider. * * @return void */ public function register() { $this->app->bindShared('weloquent.hooks', function ($app) { return Container::instance()->get('hooks.api'); }); }