From 7fd9d62581cdeb413c5a21f0f93d069e1030dbd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 2 Aug 2021 18:46:40 +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 --- System/Aop.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Aop.php b/System/Aop.php index c76e227e..88a8e9b9 100644 --- a/System/Aop.php +++ b/System/Aop.php @@ -5,7 +5,6 @@ namespace Snowflake; use Exception; -use ReflectionClass; use ReflectionException; use Snowflake\Abstracts\Component; @@ -34,7 +33,6 @@ class Aop extends Component if (!isset(static::$_aop[$alias])) { static::$_aop[$alias] = []; } - var_dump($alias, $aspect); if (in_array($aspect, static::$_aop[$alias])) { return; } @@ -83,6 +81,7 @@ class Aop extends Component { $aopName = $handler[0]::class . '::' . $handler[1]; + var_dump($aopName); $reflect = Snowflake::getDi()->get(current(static::$_aop[$aopName])); if (!method_exists($reflect, 'invoke')) { throw new Exception(ASPECT_ERROR . IAspect::class);