| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->mergeConfigFrom($this->configPath(), 'api-core'); |
||
| 19 | |||
| 20 | Auth::extend('api', function ($app, $name, array $config) { |
||
| 21 | return new ApiGuard(Auth::createUserProvider($config['provider']), $app['request'], $app['config']->get('api-core.api-key')); |
||
|
|
|||
| 22 | }); |
||
| 42 |