Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
10 | class SuperCacheInvalidateServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Register bindings in the container. |
||
14 | */ |
||
15 | public function register(): void |
||
16 | { |
||
17 | // Merge package configuration |
||
18 | $this->mergeConfigFrom( |
||
19 | __DIR__ . '/../config/super_cache_invalidate.php', |
||
20 | 'super_cache_invalidate' |
||
21 | ); |
||
22 | |||
23 | // Register the helper as a singleton |
||
24 | $this->app->singleton(SuperCacheInvalidationHelper::class, function () { |
||
25 | return new SuperCacheInvalidationHelper(); |
||
26 | }); |
||
27 | |||
28 | $this->app->singleton('super_cache_invalidate', function () { |
||
29 | return new SuperCacheInvalidationHelper(); |
||
30 | }); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Perform post-registration booting of services. |
||
35 | */ |
||
36 | public function boot(): void |
||
50 | ]); |
||
51 | } |
||
54 |