| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 9 | public function register() |
|
| 31 | { |
||
| 32 | $this->app->singleton(UrlBuilder::class, function () { |
||
| 33 | 6 | return new UrlBuilder( |
|
| 34 | 6 | config('imgix.domain'), |
|
| 35 | 6 | config('imgix.useHttps', false), |
|
| 36 | 6 | config('imgix.signKey', ''), |
|
| 37 | 6 | config('imgix.includeLibraryParam', true) |
|
| 38 | ); |
||
| 39 | 9 | }); |
|
| 40 | |||
| 41 | $this->app->singleton(Imgix::class, function ($app) { |
||
| 42 | 6 | return new Imgix($app[ UrlBuilder::class ]); |
|
| 43 | 9 | }); |
|
| 44 | |||
| 45 | 9 | $this->app->alias(Imgix::class, static::ALIAS); |
|
| 46 | 9 | } |
|
| 47 | } |
||
| 48 |