This commit is contained in:
as2252258@163.com
2021-03-29 03:17:54 +08:00
parent dd1dca5a27
commit 62ea2c7d7d
+4 -1
View File
@@ -10,6 +10,7 @@ use HttpServer\Controller;
use HttpServer\Http\Context;
use HttpServer\Http\Request;
use ReflectionException;
use Snowflake\Aop;
use Snowflake\Exception\ComponentException;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake;
@@ -53,7 +54,9 @@ class Dispatch
*/
public function dispatch(): mixed
{
return call_user_func($this->handler, ...$this->request);
/** @var Aop $aop */
$aop = Snowflake::app()->get('aop');
return call_user_func([$aop, 'dispatch'], $this->handler, ...$this->request);
}