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 | 207 | public function boot(): void |
|
17 | { |
||
18 | 207 | $this->publishes([ |
|
19 | 207 | __DIR__ . '/../../config/static-html-cache.php' => config_path('static-html-cache.php'), |
|
20 | 207 | ], 'config'); |
|
21 | 207 | } |
|
22 | |||
23 | /** |
||
24 | * Register the application services. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | 207 | public function register(): void |
|
29 | { |
||
30 | 207 | $this->mergeConfigFrom(__DIR__ . '/../../config/static-html-cache.php', 'static-html-cache'); |
|
31 | |||
32 | 207 | $this->app->singleton(StaticRequestCache::class); |
|
33 | |||
34 | 207 | $this->commands([ |
|
35 | 207 | ClearStaticCache::class, |
|
36 | ]); |
||
37 | 207 | } |
|
38 | |||
39 | public function provides(): array |
||
43 | ]; |
||
44 | } |
||
45 | } |
||
46 |