Commit 94bec4fc authored by luhongguang's avatar luhongguang

update:es host配置

parent 6c77ab47
...@@ -26,12 +26,13 @@ final class ElasticUtil ...@@ -26,12 +26,13 @@ final class ElasticUtil
} }
/** /**
* @param $hosts
* @return ElasticUtil * @return ElasticUtil
*/ */
public static function getInstance(): ElasticUtil public static function getInstance($hosts): ElasticUtil
{ {
if (empty(self::$instance)) { if (empty(self::$instance)) {
self::$instance = new self(); self::$instance = new self($hosts);
} }
return self::$instance; return self::$instance;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment