Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
10 | class RotateServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Bootstrap the application services. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function boot() |
||
18 | { |
||
19 | if ($this->app->runningInConsole()) { |
||
20 | $this->publishes([ |
||
21 | __DIR__.'/../config/rotate.php' => $this->app->configPath('rotate.php'), |
||
22 | ], 'config'); |
||
23 | |||
24 | $this->commands([ |
||
25 | RotateCommand::class, |
||
26 | RotateFileCommand::class, |
||
27 | ]); |
||
28 | |||
29 | $this->registerSchedule(); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Register the application services. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function register() |
||
39 | { |
||
40 | $this->mergeConfigFrom(__DIR__.'/../config/rotate.php', 'rotate'); |
||
41 | } |
||
42 | |||
43 | private function registerSchedule() |
||
54 | }); |
||
55 | } |
||
56 | } |
||
57 |