From db3f4d7338f8bbf00a8943c93a933fa0bcf8d25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 12:42:43 +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/Di/Container.php | 3 --- System/Di/Service.php | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 77ec06f9..ccea0a80 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -86,9 +86,6 @@ class Container extends BaseObject } else { throw new NotFindClassException($class); } - - Snowflake::configure($object, $config); - return $this->_singletons[$class] = $object; } diff --git a/System/Di/Service.php b/System/Di/Service.php index 2f2fe416..639682d7 100644 --- a/System/Di/Service.php +++ b/System/Di/Service.php @@ -60,6 +60,7 @@ class Service extends Component $object = Snowflake::createObject($config); } + Snowflake::configure($object, $config); return $this->_components[$id] = $object; }