Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class VacuumServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Bootstrap services. |
||
14 | * |
||
15 | * @return void |
||
16 | * @codeCoverageIgnore |
||
17 | */ |
||
18 | public function boot(): void |
||
19 | { |
||
20 | if (! $this->app->runningInConsole()) { |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | $this->commands([WarmUpCommand::class]); |
||
25 | |||
26 | if (function_exists('config_path')) { |
||
27 | $this->publishes([ |
||
28 | dirname(__DIR__).'/config/config.php' => config_path('wallet-vacuum.php'), |
||
29 | ], 'laravel-wallet-vacuum-config'); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return void |
||
35 | */ |
||
36 | 4 | public function register(): void |
|
45 | 4 | } |
|
46 | } |
||
47 |