This commit is contained in:
2021-03-05 18:53:50 +08:00
parent b5e6fa31dc
commit 04d0b430b1
+2 -6
View File
@@ -89,9 +89,6 @@ class Node extends HttpService
$this->annotationInject(get_class($controller), $action); $this->annotationInject(get_class($controller), $action);
$this->callback = Reduce::reduce($this->createDispatch(), $this->annotation()); $this->callback = Reduce::reduce($this->createDispatch(), $this->annotation());
} }
if ($this->path == 'user/attributes') {
var_dump($this);
}
return $this; return $this;
} }
@@ -101,9 +98,8 @@ class Node extends HttpService
*/ */
public function createDispatch(): Closure public function createDispatch(): Closure
{ {
$handler = $this->handler; return function () {
return function () use ($handler) { return Dispatch::create($this->handler, func_get_args())->dispatch();
return Dispatch::create($handler, func_get_args())->dispatch();
}; };
} }