Total Complexity | 6 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class LikeServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * Bootstrap services. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function boot(): void |
||
15 | { |
||
16 | $this->registerMigration(); |
||
17 | $this->registerAssetsPublishing(); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Register services. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function register(): void |
||
26 | { |
||
27 | $this->registerConfigs(); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the services provided by the provider. |
||
32 | * |
||
33 | * @return array<string>|null |
||
34 | */ |
||
35 | public function provides(): ?array |
||
36 | { |
||
37 | return ['like']; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Register the package's migrations. |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | public function registerMigration(): void |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Register configs. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | protected function registerConfigs(): void |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Register assets publishing. |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | public function registerAssetsPublishing(): void |
||
76 | } |
||
77 | } |
||
78 |