| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 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.domains'), |
|
| 35 | 6 | config('imgix.useHttps', false), |
|
| 36 | 6 | config('imgix.signKey', ''), |
|
| 37 | 6 | config('imgix.shardStrategy', ShardStrategy::CRC), |
|
| 38 | 6 | config('imgix.includeLibraryParam', true) |
|
| 39 | 2 | ); |
|
| 40 | 9 | }); |
|
| 41 | |||
| 42 | 9 | $this->app->singleton(Imgix::class, function ($app) { |
|
| 43 | 6 | return new Imgix($app[UrlBuilder::class]); |
|
| 44 | 9 | }); |
|
| 45 | |||
| 46 | 9 | $this->app->alias(Imgix::class, static::ALIAS); |
|
| 47 | 9 | } |
|
| 48 | } |
||
| 49 |