modify plugin name

This commit is contained in:
2022-06-16 18:49:34 +08:00
parent a79a469547
commit 0a70a95b63
+2 -2
View File
@@ -179,12 +179,12 @@ class Server extends Component
}
}
if ($handler instanceof OnCloseInterface) {
$handler->onClose($this->server, $response->fd);
$handler->onClose($response->fd);
}
return null;
}
$params = $this->container->getArgs($handler[0], $handler[1] ?? null);
$params = $this->container->getArgs($handler[1], $handler[0] ?? null);
$result = call_user_func($handler, ...$params);
if (is_null($result)) {
return $this->write("", $response);