This commit is contained in:
2021-02-22 20:02:05 +08:00
parent a11a26a5e7
commit cb44c5fd85
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class Container extends BaseObject
if (!$reflect->isInstantiable()) {
throw new Exception($reflect->getName() . ' con\'t instantiable');
}
var_dump($dependencies);
var_dump($class, $dependencies);
if (empty($config)) {
return $reflect->newInstanceArgs($dependencies ?? []);
}
-3
View File
@@ -203,9 +203,6 @@ class Snowflake
public static function configure($object, $config): mixed
{
foreach ($config as $key => $value) {
if (!is_string($key)) {
var_dump(get_class($object), $config);
}
if (!property_exists($object, $key)) {
continue;
}