改名
This commit is contained in:
@@ -71,7 +71,7 @@ class Router extends Application implements RouterInterface
|
|||||||
if (!isset($this->nodes[$method])) {
|
if (!isset($this->nodes[$method])) {
|
||||||
$this->nodes[$method] = [];
|
$this->nodes[$method] = [];
|
||||||
}
|
}
|
||||||
if (Config::get('router') == ROUTER_TREE) {
|
if (Config::get('router', false, ROUTER_HASH) == ROUTER_TREE) {
|
||||||
return $this->tree($path, $handler, $method);
|
return $this->tree($path, $handler, $method);
|
||||||
} else {
|
} else {
|
||||||
return $this->hash($path, $handler, $method);
|
return $this->hash($path, $handler, $method);
|
||||||
|
|||||||
Reference in New Issue
Block a user