| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | $this->mergeConfigFrom( |
||
| 30 | __DIR__.'/../config/littlegatekeeper.php', 'littlegatekeeper' |
||
| 31 | ); |
||
| 32 | |||
| 33 | $this->app->instance( |
||
| 34 | Authenticator::class, |
||
| 35 | new Authenticator( |
||
| 36 | $this->app->config->get('littlegatekeeper.username'), |
||
| 37 | $this->app->config->get('littlegatekeeper.password'), |
||
| 38 | $this->app->config->get('littlegatekeeper.sessionKey'), |
||
| 39 | $this->app->make(Session::class) |
||
| 40 | ) |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->app->alias(Authenticator::class, 'littlegatekeeper'); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |