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