| <?php namespace ServiceRunner\Auth; |
| |
| use Illuminate\Auth\Guard; |
| use Illuminate\Support\ServiceProvider; |
| use ServiceRunner\Auth\ServiceRunnerUserProvider; |
| |
| class AuthServiceProvider extends ServiceProvider { |
| |
| |
| |
| |
| |
| |
| protected $defer = false; |
| |
| |
| |
| |
| |
| |
| public function boot() { |
| |
| $this->package('servicerunner/auth'); |
| |
| $this->app['auth']->extend('servicerunner', function($app) { |
| $model = $app['config']->get('auth.model'); |
| $Provider = new ServiceRunnerUserProvider(new \Illuminate\Hashing\BcryptHasher, $model); |
| return new Guard($Provider, $app['session.store']); |
| }); |
| |
| } |
| |
| |
| |
| |
| |
| |
| |
| public function register() { |
| |
| } |
| |
| |
| |
| |
| |
| |
| public function when() { |
| return array('Illuminate\Auth\AuthServiceProvider'); |
| } |
| } |