From ed22e2a767c154c042c6d2a739f4a0cc7d7697ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 19:09:37 +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/Loader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 5a9dbe85..dbf5bd3e 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -10,6 +10,7 @@ use ReflectionClass; use ReflectionMethod; use ReflectionProperty; use Snowflake\Abstracts\BaseObject; +use Snowflake\Snowflake; use Throwable; @@ -141,7 +142,7 @@ class Loader extends BaseObject array_shift($explode); try { - $replace = new ReflectionClass($namespace . implode('\\', $explode)); + $replace = Snowflake::getDi()->getReflect($namespace . implode('\\', $explode)); if (!$replace->isInstantiable()) { continue; }