| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class ClonerServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap any application services. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | 42 | public function boot() |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register the application services. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | 42 | public function register() |
|
| 27 | { |
||
| 28 | 42 | $this->app->singleton(Cloner::class, function () { |
|
| 29 | 2 | return new Cloner(new CloneService, new PersistenceService); |
|
| 30 | }); |
||
| 31 | |||
| 32 | 42 | $this->app->alias(Cloner::class, 'cloner'); |
|
| 33 | |||
| 34 | 42 | $this->registerConfiguration(); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Register the configuration required for the package. |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | 42 | public function registerConfiguration() |
|
| 47 | ); |
||
| 48 | } |
||
| 50 |