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; }