public function boot() { $this->app->extend('anlutro\\Core\\Auth\\UserManager', function (UserManager $manager, $app) { $manager->setReminderService($app['auth.reminder']); return $manager; }); static::$resPath = CoreServiceProvider::getResPath(); $this->registerRoutes('reminders'); }
/** * Register IoC bindings. * * @return void */ public function register() { static::$resPath = dirname(__DIR__) . '/resources'; $this->commands(['anlutro\\Core\\Console\\PublishCommand', 'anlutro\\Core\\Auth\\Console\\CreateUserCommand', 'anlutro\\Core\\Auth\\Console\\ChangePasswordCommand']); $this->app->bind('anlutro\\Core\\Auth\\UserManager'); $this->app->bind('Illuminate\\Database\\Connection', function ($app) { return $app->make('db')->connection(); }); $this->userModel = $this->app['config']->get('auth.model') ?: 'anlutro\\Core\\Auth\\Users\\UserModel'; $this->app->bind('anlutro\\Core\\Auth\\Users\\UserModel', $this->userModel); $this->app->bindShared('anlutro\\Core\\Html\\ScriptManager', function ($app) { return new Html\ScriptManager($app['config']->get('app.debug')); }); }