Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
6 | { |
||
7 | 11 | public function boot() |
|
8 | { |
||
9 | 11 | if ($this->app->runningInConsole()) { |
|
10 | 11 | $this->publishes([ |
|
11 | 11 | __DIR__ . '/../config/recently-viewed.php' => config_path('recently-viewed.php'), |
|
12 | 11 | ], 'config'); |
|
13 | |||
14 | 11 | $this->commands([ |
|
15 | 11 | ]); |
|
16 | |||
17 | 11 | $this->registerMigrations(); |
|
18 | } |
||
19 | } |
||
20 | |||
21 | 11 | public function register() |
|
22 | { |
||
23 | 11 | $this->mergeConfigFrom(__DIR__ . '/../config/recently-viewed.php', 'recently-viewed'); |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * Register the package migrations. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | 11 | protected function registerMigrations() |
|
35 | } |
||
36 | } |
||
37 | } |
||
38 |