| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class CacheProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap the application services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | 154 | public function boot() |
|
| 17 | { |
||
| 18 | 154 | $this->publishes([ |
|
| 19 | 154 | __DIR__ . '/../../config/static-html-cache.php' => config_path('static-html-cache.php'), |
|
| 20 | 154 | ], 'config'); |
|
| 21 | 154 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Register the application services. |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | 154 | public function register() |
|
| 29 | { |
||
| 30 | 154 | $this->mergeConfigFrom(__DIR__ . '/../../config/static-html-cache.php', 'static-html-cache'); |
|
| 31 | |||
| 32 | 154 | $this->app->singleton(StaticRequestCache::class); |
|
| 33 | |||
| 34 | 154 | $this->commands([ |
|
| 35 | 154 | ClearStaticCache::class, |
|
| 36 | ]); |
||
| 37 | 154 | } |
|
| 38 | |||
| 39 | public function provides() |
||
| 43 | ]; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |