Total Complexity | 6 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ServiceProvider extends BaseServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Bootstrap the application services. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function boot() |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Register any application services. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function register() |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Register publishments |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | protected function registerPublishments() |
||
45 | { |
||
46 | $this->publishes([ |
||
47 | __DIR__ . '/../config/synchronizer.php' => config_path('synchronizer.php'), |
||
48 | ], 'config'); |
||
49 | |||
50 | $this->publishes([ |
||
51 | __DIR__ . '/../database/migrations/' => database_path('migrations'), |
||
52 | ], 'migrations'); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Get default configuration file path |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getDefaultConfigFilePath($configName) |
||
61 | { |
||
62 | return realpath(__DIR__ . "/../config/{$configName}.php"); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * Boot commands |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | private function bootCommands() |
||
76 | ]); |
||
77 | } |
||
78 | } |
||
80 |