This commit is contained in:
2021-03-05 17:41:07 +08:00
parent c537a0a53a
commit fad7c43f59
3 changed files with 18 additions and 22 deletions
+1 -3
View File
@@ -53,9 +53,7 @@ use Snowflake\Snowflake;
$method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri);
$node = $router->addRoute($method, $handler, 'sw::socket');
$node::annotationInject($node, get_class($handler[0]), $handler[1]);
$router->addRoute($method, $handler, 'sw::socket');
return $router;
}