改名
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
namespace Kiri\Rpc;
|
||||
|
||||
use Exception;
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use ReflectionException;
|
||||
|
||||
class Registry
|
||||
{
|
||||
// KV
|
||||
@@ -48,4 +52,17 @@ class Registry
|
||||
const DEFAULT_HTTP_TIMEOUT = 30;
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @return array
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getService($name): array
|
||||
{
|
||||
return di(Client::class)->get($name);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user