改名
This commit is contained in:
+4
-2
@@ -9,7 +9,7 @@ use Kiri\Consul\Health;
|
|||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
|
|
||||||
class RpcManager
|
class RpcManager extends BaseObject
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
@@ -88,8 +88,10 @@ class RpcManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($lists as $reflection) {
|
foreach ($lists as $reflection) {
|
||||||
|
if ($reflection->getDeclaringClass() != $class) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$methodName = $reflection->getName();
|
$methodName = $reflection->getName();
|
||||||
|
|
||||||
$this->_rpc[$name]['methods'][$methodName] = [new Handler('/', [$class, $methodName]), null];
|
$this->_rpc[$name]['methods'][$methodName] = [new Handler('/', [$class, $methodName]), null];
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user