modify
This commit is contained in:
@@ -32,7 +32,7 @@ class Dispatch
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public static function create($handler, $request): static
|
||||
public static function create($handler): static
|
||||
{
|
||||
$class = new static();
|
||||
$class->handler = $handler;
|
||||
|
||||
@@ -127,9 +127,7 @@ class Node extends HttpService
|
||||
public function createDispatch(): Closure
|
||||
{
|
||||
return function () {
|
||||
return Dispatch::create($this->handler,\request())->dispatch();
|
||||
|
||||
return call_user_func($this->handler, ...$dispatchParam);
|
||||
return Dispatch::create($this->handler)->dispatch();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user