| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class StancyServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | 13 | public function boot(): void |
|
| 12 | { |
||
| 13 | 13 | $this->publishes([ |
|
| 14 | 13 | __DIR__.'/../config/stancy.php' => config_path('stancy.php'), |
|
| 15 | 13 | ], 'config'); |
|
| 16 | 13 | } |
|
| 17 | |||
| 18 | 13 | public function register(): void |
|
| 19 | { |
||
| 20 | 13 | $this->registerConfig(); |
|
| 21 | 13 | $this->registerSchemaOrg(); |
|
| 22 | 13 | $this->registerPage(); |
|
| 23 | 13 | } |
|
| 24 | |||
| 25 | 13 | protected function registerConfig(): void |
|
| 26 | { |
||
| 27 | 13 | $this->mergeConfigFrom( |
|
| 28 | 13 | __DIR__.'/../config/stancy.php', 'stancy' |
|
| 29 | ); |
||
| 30 | 13 | } |
|
| 31 | |||
| 32 | 13 | protected function registerSchemaOrg(): void |
|
| 35 | 13 | } |
|
| 36 | |||
| 37 | 13 | protected function registerPage(): void |
|
| 38 | { |
||
| 42 |