src/LaravelModulesServiceProvider.php 1 location
|
@@ 45-53 (lines=9) @@
|
| 42 |
|
/** |
| 43 |
|
* {@inheritdoc} |
| 44 |
|
*/ |
| 45 |
|
protected function registerServices() |
| 46 |
|
{ |
| 47 |
|
$this->app->singleton(FileRepository::class, function ($app) { |
| 48 |
|
$path = $app['config']->get('modules.paths.modules'); |
| 49 |
|
|
| 50 |
|
return new Laravel\LaravelFileRepository($app, $path); |
| 51 |
|
}); |
| 52 |
|
$this->app->alias(FileRepository::class, 'modules'); |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
src/LumenModulesServiceProvider.php 1 location
|
@@ 43-51 (lines=9) @@
|
| 40 |
|
/** |
| 41 |
|
* {@inheritdoc} |
| 42 |
|
*/ |
| 43 |
|
protected function registerServices() |
| 44 |
|
{ |
| 45 |
|
$this->app->singleton(FileRepository::class, function ($app) { |
| 46 |
|
$path = $app['config']->get('modules.paths.modules'); |
| 47 |
|
|
| 48 |
|
return new Lumen\LumenFileRepository($app, $path); |
| 49 |
|
}); |
| 50 |
|
$this->app->alias(FileRepository::class, 'modules'); |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|