| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 9 |
| Ratio | 100 % |
| Tests | 4 |
| CRAP Score | 1.037 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 183 | View Code Duplication | protected function registerServices() |
| 46 | { |
||
| 47 | $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) { |
||
| 48 | $path = $app['config']->get('modules.paths.modules'); |
||
| 49 | |||
| 50 | return new Laravel\LaravelFileRepository($app, $path); |
||
| 51 | 183 | }); |
|
| 52 | 183 | $this->app->alias(Contracts\RepositoryInterface::class, 'modules'); |
|
| 53 | 183 | } |
|
| 54 | } |
||
| 55 |