From 142b64dec8fea5d07b4c9634027e81a2a595e51f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 03:27:22 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index ddfec915..43fd34fb 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -178,9 +178,9 @@ class Container extends BaseObject } else { $reflection = $this->_reflection[$class]; } -// if (!is_null($construct = $reflection->getConstructor())) { -// $constrict = $this->resolveMethodParam($construct); -// } + if (!is_null($construct = $reflection->getConstructor())) { + $constrict = $this->resolveMethodParam($construct); + } return [$reflection, $constrict]; }