Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
21 | public function getConnection(): \Manticoresearch\Client |
||
22 | { |
||
23 | $host = Config::inst()->get('Suilven\ManticoreSearch\Service\Client', 'host'); |
||
24 | $port = Config::inst()->get('Suilven\ManticoreSearch\Service\Client', 'port'); |
||
25 | |||
26 | $config = ['host'=>$host, 'port'=>$port]; |
||
27 | |||
28 | return new \Manticoresearch\Client($config); |
||
29 | } |
||
40 |