Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 7 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
7 | class ServiceProvider extends Provider |
||
8 | { |
||
9 | /** |
||
10 | * Check if the application runs with Lumen. |
||
11 | * |
||
12 | * @return bool |
||
13 | */ |
||
14 | protected function isLumen(): bool |
||
15 | { |
||
16 | return strpos($this->app->version(), 'Lumen') !== false; |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Bootstrap the application services. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | public function boot(): void |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Register the application services. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function register(): void |
||
55 |