| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function register(): void |
||
| 28 | { |
||
| 29 | $configPath = realpath(dirname(__DIR__).'/config/varnishable.php'); |
||
| 30 | |||
| 31 | if ($configPath !== false) { |
||
| 32 | $this->mergeConfigFrom($configPath, 'varnishable'); |
||
| 33 | } |
||
| 34 | |||
| 35 | $this->app->singleton(VarnishableService::class, function (): VarnishableService { |
||
| 36 | return new VarnishableService(new Client()); |
||
| 37 | }); |
||
| 38 | |||
| 39 | $this->app->singleton(VarnishableObserver::class, function (): VarnishableObserver { |
||
| 40 | return new VarnishableObserver(); |
||
| 41 | }); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |