This commit is contained in:
2021-04-19 16:19:07 +08:00
parent ad795339c7
commit b32d49b028
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ use Snowflake\Snowflake;
$method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); $method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri);
var_dump($method);
$router->addRoute($method, $handler, 'sw::socket'); $router->addRoute($method, $handler, 'sw::socket');
return $router; return $router;
-1
View File
@@ -414,7 +414,6 @@ class Router extends HttpService implements RouterInterface
return $this->nodes[$method]['/'] ?? null; return $this->nodes[$method]['/'] ?? null;
} }
$first = array_shift($explode); $first = array_shift($explode);
var_dump($this->nodes[$method]);
if (!($parent = $this->nodes[$method][$first] ?? null)) { if (!($parent = $this->nodes[$method][$first] ?? null)) {
return null; return null;
} }