| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function register() |
||
| 31 | { |
||
| 32 | 1 | $this->app->singleton(Repository::class, function ($app) { |
|
| 33 | $config = [ |
||
| 34 | 1 | 'protected' => [ |
|
| 35 | 'app', |
||
| 36 | 'auth.defaults.guard', |
||
| 37 | ], |
||
| 38 | 1 | 'cache' => storage_path('app/config.json'), |
|
| 39 | ]; |
||
| 40 | |||
| 41 | 1 | return new DatabaseRepository($app['config'], $app->make(Config::class), $app['files'], $config); |
|
| 42 | 1 | }); |
|
| 43 | 1 | } |
|
| 44 | |||
| 65 |