Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 3 | ||
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 |
||
56 | { |
||
57 | $configPath = __DIR__.'/../../config/like.php'; |
||
58 | $this->mergeConfigFrom($configPath, 'like'); |
||
78 |