| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | $this->app->singleton(UrlBuilder::class, function () { |
||
| 27 | return new UrlBuilder( |
||
| 28 | config('imgix.domains', []), |
||
| 29 | config('imgix.useHttps', false), |
||
| 30 | config('imgix.signKey', ''), |
||
| 31 | config('imgix.shardStrategy', ShardStrategy::CRC), |
||
| 32 | config('imgix.includeLibraryParam', true) |
||
| 33 | ); |
||
| 34 | }); |
||
| 35 | |||
| 36 | $this->app->singleton(Imgix::class, function ($app) { |
||
| 37 | return new Imgix($app[UrlBuilder::class]); |
||
| 38 | }); |
||
| 39 | |||
| 40 | $this->app->alias(Imgix::class, 'imgix'); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |