This commit is contained in:
2021-03-05 18:45:20 +08:00
parent 529fe55c52
commit 9f2926d1df
+3 -2
View File
@@ -98,8 +98,9 @@ class Node extends HttpService
*/
public function createDispatch(): Closure
{
return function () {
return Dispatch::create($this->handler, func_get_args())->dispatch();
$handler = $this->handler;
return function () use ($handler) {
return Dispatch::create($handler, func_get_args())->dispatch();
};
}