| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function register() |
||
| 22 | { |
||
| 23 | $this->app->bind(HttpClientInterface::class, FileGetContentsHttpClient::class); |
||
| 24 | |||
| 25 | $this->app->bind(MessageValidator::class, function ($app) { |
||
| 26 | return new MessageValidator(function (string $url) use ($app) { |
||
| 27 | /** @var HttpClientInterface $httpClient */ |
||
| 28 | $httpClient = $app->make(HttpClientInterface::class); |
||
| 29 | |||
| 30 | return $httpClient->get($url); |
||
| 31 | }); |
||
| 44 |