diff --git a/Annotation/Aspect.php b/Annotation/Aspect.php index 3f3cb6f0..1af30b5c 100644 --- a/Annotation/Aspect.php +++ b/Annotation/Aspect.php @@ -38,7 +38,7 @@ defined('ASPECT_ERROR') or define('ASPECT_ERROR', 'Aspect annotation must implem throw new Exception(ASPECT_ERROR . IAspect::class); } /** @var Aop $aop */ - $aop = Snowflake::app()->get(Aop::class); + $aop = Snowflake::getDi()->get(Aop::class); $aop->aop_add([$class, $method], $this->aspect);