Authored by 沈海生

session服务修改

@@ -11,6 +11,7 @@ namespace Hood\Core\Session; @@ -11,6 +11,7 @@ namespace Hood\Core\Session;
11 use Hood\Core\Support\Str; 11 use Hood\Core\Support\Str;
12 use Hood\Core\Root; 12 use Hood\Core\Root;
13 use Hood\Cache\Memcached as mcCache; 13 use Hood\Cache\Memcached as mcCache;
  14 +use Hood\Utils\Rpc\Factory;
14 15
15 class RpcSession extends Root implements SessionHandlerInterface 16 class RpcSession extends Root implements SessionHandlerInterface
16 { 17 {
@@ -119,7 +120,7 @@ class RpcSession extends Root implements SessionHandlerInterface @@ -119,7 +120,7 @@ class RpcSession extends Root implements SessionHandlerInterface
119 } 120 }
120 $this->setOption(); 121 $this->setOption();
121 if (empty($this->serviceClient)) { 122 if (empty($this->serviceClient)) {
122 - $this->serviceClient = new \Yar_Client($this->serviceUrl); 123 + $this->serviceClient = Factory::getInstance($this->serviceUrl);
123 } 124 }
124 return $this->serviceClient; 125 return $this->serviceClient;
125 } 126 }