/** * Register authenticator. * * @author Morten Rugaard <*****@*****.**> * @return void */ protected function registerAuthenticator() { $this->app->singleton('nodes.backend.auth', function ($app) { $providers = prepare_config_instances(config('nodes.backend.auth.providers')); return new Manager($app['nodes.backend.auth.model'], $app['session.store'], $app['router'], $providers); }); }
/** * Register the authenticator. * * @author Morten Rugaard <*****@*****.**> * * @return void */ protected function registerAuth() { $this->app->singleton('api.auth', function ($app) { return new NodesAuth($app['api.router'], $app, prepare_config_instances(config('nodes.api.auth.providers'))); }); }
/** * Register the rate limiting. * * @author Morten Rugaard <*****@*****.**> * * @return void */ protected function registerRateLimiting() { $this->app->singleton('api.limiting', function ($app) { return new DingoRateLimitHandler($app, $app['cache'], prepare_config_instances(config('nodes.api.throttling'))); }); }