modify
This commit is contained in:
@@ -81,6 +81,8 @@ class Node extends HttpService
|
|||||||
$this->_error = 'Controller is con\'t exec.';
|
$this->_error = 'Controller is con\'t exec.';
|
||||||
} else if ($handler instanceof Closure) {
|
} else if ($handler instanceof Closure) {
|
||||||
$this->handler = $handler;
|
$this->handler = $handler;
|
||||||
|
|
||||||
|
$this->callback = Reduce::reduce($this->createDispatch(), $this->annotation());
|
||||||
} else {
|
} else {
|
||||||
[$controller, $action] = $this->handler = $handler;
|
[$controller, $action] = $this->handler = $handler;
|
||||||
if (!($controller instanceof Controller)) {
|
if (!($controller instanceof Controller)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user