1 | <?php |
||
19 | class AsyncServiceProvider extends BaseServiceProvider implements DeferrableProvider |
||
20 | { |
||
21 | /** |
||
22 | * Package boot. |
||
23 | */ |
||
24 | public function boot(): void |
||
28 | |||
29 | /** |
||
30 | * Publish async config files. |
||
31 | */ |
||
32 | protected function publishConfigs(): void |
||
33 | { |
||
34 | $this->publishes([ |
||
35 | __DIR__.'/../config/async.php' => config_path('async.php'), |
||
36 | ], 'config'); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function register(): void |
||
43 | { |
||
44 | $this->mergeDefaultConfigs(); |
||
45 | $this->registerServices(); |
||
46 | $this->registerCommands(); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Merge default async config to config service. |
||
51 | */ |
||
52 | protected function mergeDefaultConfigs(): void |
||
56 | |||
57 | /** |
||
58 | * Register package services. |
||
59 | */ |
||
60 | protected function registerServices(): void |
||
81 | |||
82 | /** |
||
83 | * Register package commands. |
||
84 | */ |
||
85 | protected function registerCommands(): void |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function provides(): array |
||
99 | } |
||
100 |