| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 25 | public static function bootstrap() |
||
| 26 | { |
||
| 27 | $configJson = file_get_contents(Constant::getGlobals()["config-dir"]["elasticsearch-config"]); |
||
| 28 | |||
| 29 | $config = json_decode($configJson, true); |
||
| 30 | |||
| 31 | self::$clientObject = \Elasticsearch\ClientBuilder::create()->setHosts($config["hosts"])->build(); |
||
| 32 | } |
||
| 33 | |||
| 39 | } |