改名
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user