Total Complexity | 6 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 4 | ||
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() |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Register publishments |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | protected function registerPublishments() |
||
47 | { |
||
48 | $this->publishes([ |
||
49 | __DIR__ . '/../config/synchronizer.php' => config_path('synchronizer.php'), |
||
50 | ], 'config'); |
||
51 | |||
52 | $this->publishes([ |
||
53 | __DIR__ . '/../database/migrations/' => database_path('migrations'), |
||
54 | ], 'migrations'); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Get default configuration file path |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getDefaultConfigFilePath($configName) |
||
63 | { |
||
64 | return realpath(__DIR__ . "/../config/{$configName}.php"); |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * Boot commands |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | private function bootCommands() |
||
78 | ]); |
||
79 | } |
||
80 | } |
||
82 |