From 0bb92fecb07ac93a499ad252a1f54508714ab85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 25 Apr 2021 12:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Di/Container.php | 3 +++ System/Snowflake.php | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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;