Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 10 | public function boot() |
|
15 | { |
||
16 | 10 | if ($this->app->runningInConsole()) { |
|
17 | 10 | $this->publishes([ |
|
18 | 10 | __DIR__ . '/../config/nova-page-settings.php' => config_path('nova-page-settings.php'), |
|
19 | 10 | ], 'config'); |
|
20 | |||
21 | |||
22 | 10 | $this->commands([ |
|
23 | 10 | ]); |
|
24 | } |
||
25 | |||
26 | 10 | Gate::policy( |
|
27 | 10 | \Thinkone\NovaPageSettings\QueryAdapter\InternalSettingsModel::class, |
|
28 | 10 | config('nova-page-settings.adapter_model_policy') |
|
29 | 10 | ); |
|
42 |