| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function register() |
||
| 11 | { |
||
| 12 | $this->mergeConfigFrom(__DIR__.'/config/image-cacher.php', 'image-cacher'); |
||
| 13 | |||
| 14 | $this->app->singleton(Cacher::class, function () { |
||
| 15 | return new Cacher( |
||
| 16 | config('image-cacher.cache_path'), |
||
| 17 | config('image-cacher.cache_root_path'), |
||
| 18 | config('image-cacher.images_root_path'), |
||
| 19 | config('image-cacher.output_format') |
||
| 20 | ); |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | |||
| 28 | } |