diff --git a/System/Di/Container.php b/System/Di/Container.php index 96b715b1..c63cfb76 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -146,6 +146,9 @@ class Container extends BaseObject unset($dependencies['class']); + var_dump($reflect->getName() . '::' . Json::encode($dependencies)); + + if (empty($config) || !is_array($config)) { $object = $this->newInstance($reflect, $dependencies); } else if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) { diff --git a/System/Snowflake.php b/System/Snowflake.php index 27241050..bc957eaa 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -306,7 +306,6 @@ class Snowflake */ public static function configure($object, $config): mixed { - var_dump($config); foreach ($config as $key => $value) { if (!property_exists($object, $key)) { continue;