Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | private function buildElasticsearchClient() : Client |
||
28 | { |
||
29 | $config = config('triadev-elasticsearch'); |
||
30 | |||
31 | $clientBuilder = ClientBuilder::create(); |
||
32 | $clientBuilder->setHosts([ |
||
33 | [ |
||
34 | 'host' => array_get($config, 'host'), |
||
35 | 'port' => array_get($config, 'port'), |
||
36 | 'scheme' => array_get($config, 'scheme'), |
||
37 | 'user' => array_get($config, 'user'), |
||
38 | 'pass' => array_get($config, 'password') |
||
39 | ] |
||
40 | ]); |
||
41 | |||
42 | return $clientBuilder->build(); |
||
43 | } |
||
45 |