Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace H4ad\Scheduler; |
||
15 | class SchedulerServiceProvider extends ServiceProvider |
||
16 | { |
||
17 | /** |
||
18 | * Perform post-registration booting of services. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | public function boot() |
||
33 | ]); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Register the application services. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function register() |
||
42 | { |
||
43 | $this->app->alias(Scheduler::class, 'scheduler'); |
||
44 | |||
45 | $this->app->singleton('scheduler', function () { |
||
46 | return new Scheduler; |
||
47 | }); |
||
48 | |||
49 | $this->mergeConfig(); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Mescla configurações do usuário com as configurações do Scheduler. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | private function mergeConfig() |
||
61 | ); |
||
62 | } |
||
63 | } |