From 4a52c2b59080e9b756d26aa0d62f019c79b6aeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 2 Aug 2021 18:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Aspect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);