From 93dc8866f58db7bf2d3b927c3b85900fe1d1fa8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 20:06:59 +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 b09d3b1e..26527a30 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -69,7 +69,7 @@ class Container extends BaseObject * @throws NotFindClassException * @throws ReflectionException */ - public function get($class, $constrict = [], $config = []): mixed + public function get($class, $constrict = null, $config = null): mixed { if (isset($this->_singletons[$class])) { return $this->_singletons[$class]; @@ -126,8 +126,6 @@ class Container extends BaseObject throw new Exception($reflect->getName() . ' con\'t instantiable'); } if (empty($config)) { - var_dump($class, $dependencies); - return $reflect->newInstanceArgs($dependencies ?? []); } if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) {