From a11a26a5e7415566c3bc5538f7789d1a652431d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 20:00:49 +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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index aec6a5c0..8eae70da 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -120,14 +120,12 @@ class Container extends BaseObject { [$reflect, $dependencies] = $this->resolveDependencies($class); foreach ($constrict as $index => $param) { - if (is_array($param)) { - continue; - } $dependencies[$index] = $param; } if (!$reflect->isInstantiable()) { throw new Exception($reflect->getName() . ' con\'t instantiable'); } + var_dump($dependencies); if (empty($config)) { return $reflect->newInstanceArgs($dependencies ?? []); }