From 24c138174cb7001d89b7e9ba602eebf46fd03d29 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 02:03:10 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 05f345b2..fcd97634 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -143,14 +143,14 @@ class Container extends BaseObject $reflection = $this->_reflection[$class]; } - if (!is_null($construct = $reflection->getConstructor())) { - $this->_constructs[$class] = $this->resolveMethodParam($construct, $constrict); - } else { - if ($class == HttpHeaders::class) { - var_dump($constrict); - } - $this->_constructs[$class] = $constrict; - } +// if (!is_null($construct = $reflection->getConstructor())) { +// $this->_constructs[$class] = $this->resolveMethodParam($construct, $constrict); +// } else { +// if ($class == HttpHeaders::class) { +// var_dump($constrict); +// } +// $this->_constructs[$class] = $constrict; +// } return $reflection; }