From ed199261be9fa43a6685090f75bfadc0eb7ea3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 15:38:41 +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/Service.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Di/Service.php b/System/Di/Service.php index 639682d7..1f2b475c 100644 --- a/System/Di/Service.php +++ b/System/Di/Service.php @@ -54,13 +54,12 @@ class Service extends Component if (is_object($config)) { return $this->_components[$id] = $config; } - $object = Snowflake::createObject($config); + $object = clone Snowflake::createObject($config); } else { $config = $this->_alias[$id]; - $object = Snowflake::createObject($config); + $object = clone Snowflake::createObject($config); } - Snowflake::configure($object, $config); return $this->_components[$id] = $object; }