diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 058e8aaa..e7fa4357 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -81,7 +81,9 @@ class Node extends HttpService $this->_error = 'Controller is con\'t exec.'; } else if ($handler instanceof Closure) { $this->handler = $handler; - } else { + + $this->callback = Reduce::reduce($this->createDispatch(), $this->annotation()); + } else { [$controller, $action] = $this->handler = $handler; if (!($controller instanceof Controller)) { return $this;