This commit is contained in:
as2252258@163.com
2021-04-20 00:44:18 +08:00
parent eaeb124994
commit 8637d022d4
+2 -2
View File
@@ -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, $request): static
{ {
$class = new static(); $class = new static();
$class->handler = $handler; $class->handler = $handler;
@@ -52,7 +52,7 @@ class Dispatch
*/ */
public function dispatch(): mixed public function dispatch(): mixed
{ {
return call_user_func($this->handler, ...$this->request); // return call_user_func($this->handler, $this->request);
return \aop($this->handler, ...$this->request); return \aop($this->handler, ...$this->request);
} }