This commit is contained in:
2021-04-25 12:42:43 +08:00
parent 2fe8e134dc
commit db3f4d7338
2 changed files with 1 additions and 3 deletions
-3
View File
@@ -86,9 +86,6 @@ class Container extends BaseObject
} else { } else {
throw new NotFindClassException($class); throw new NotFindClassException($class);
} }
Snowflake::configure($object, $config);
return $this->_singletons[$class] = $object; return $this->_singletons[$class] = $object;
} }
+1
View File
@@ -60,6 +60,7 @@ class Service extends Component
$object = Snowflake::createObject($config); $object = Snowflake::createObject($config);
} }
Snowflake::configure($object, $config);
return $this->_components[$id] = $object; return $this->_components[$id] = $object;
} }