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