This commit is contained in:
as2252258@163.com
2021-07-11 04:03:00 +08:00
parent cda768b721
commit 6d0b6f887d
+1 -1
View File
@@ -47,7 +47,7 @@ use Snowflake\Snowflake;
$router = Snowflake::app()->getRouter();
$cmd = $this->cmd;
$callback = function (Actuator $actuator) use ($cmd, $class, $method) {
$actuator->addListener($cmd, $class . '@' . $method);
$actuator->addListener($cmd, $class::class . '@' . $method);
};
$router->addRpcService($this->port, $callback);
return $router;