This commit is contained in:
2021-04-20 11:42:24 +08:00
parent e2a562107d
commit 3d19ebbbbc
+1 -2
View File
@@ -16,7 +16,6 @@ use HttpServer\Abstracts\HttpService;
use HttpServer\Controller;
use HttpServer\Http\Request;
use HttpServer\HttpFilter;
use HttpServer\Route\Dispatch\Dispatch;
use JetBrains\PhpStorm\Pure;
use ReflectionException;
use Snowflake\Core\Json;
@@ -128,7 +127,7 @@ class Node extends HttpService
public function createDispatch(): Closure
{
return function () {
return Dispatch::create($this->handler, func_get_args())->dispatch();
return call_user_func($this->handler, ...func_get_args());
};
}