This commit is contained in:
2021-02-22 20:06:03 +08:00
parent cb44c5fd85
commit 28593bb297
+2 -1
View File
@@ -125,8 +125,9 @@ class Container extends BaseObject
if (!$reflect->isInstantiable()) { if (!$reflect->isInstantiable()) {
throw new Exception($reflect->getName() . ' con\'t instantiable'); throw new Exception($reflect->getName() . ' con\'t instantiable');
} }
var_dump($class, $dependencies);
if (empty($config)) { if (empty($config)) {
var_dump($class, $dependencies);
return $reflect->newInstanceArgs($dependencies ?? []); return $reflect->newInstanceArgs($dependencies ?? []);
} }
if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) { if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) {