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