| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Nord\Lumen\Elasticsearch; |
||
| 27 | protected function registerBindings() |
||
| 28 | { |
||
| 29 | /** @noinspection PhpUndefinedMethodInspection */ |
||
| 30 | $config = $this->app['config']->get('elasticsearch', []); |
||
| 31 | |||
| 32 | $this->app->/** @scrutinizer ignore-call */ singleton(ElasticsearchServiceContract::class, function () use ($config) { |
||
| 33 | return new ElasticsearchService(ClientBuilder::fromConfig($config)); |
||
| 34 | }); |
||
| 37 |