| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class HealthyServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap any Healthy services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | // Publish config file |
||
| 19 | $this->publishes([ |
||
| 20 | __DIR__.'/../../config/healthy.php' => base_path('config/healthy.php'), |
||
| 21 | ], 'config'); |
||
| 22 | |||
| 23 | // Map health check paths |
||
| 24 | Route::get(config('healthy.uri'), HealthyController::class)->name(config('healthy.route')); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Register any Healthy services. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function register() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |