This commit is contained in:
2021-03-08 17:19:00 +08:00
parent 67d5ba18ff
commit 85ebf7d795
+2
View File
@@ -87,6 +87,8 @@ class Router extends HttpService implements RouterInterface
if (!method_exists($_closure, $method)) {
throw new NotFindClassException($closure . '::' . $method);
}
$closure = [$closure, $method];
}
$this->addRoute('add-port-listen/port_' . $port, $closure, 'listen');
}