diff --git a/System/Di/Container.php b/System/Di/Container.php index 43fd34fb..abdc9480 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]; } @@ -229,7 +229,7 @@ class Container extends BaseObject return $reflect; } $reflect = $this->resolveDependencies($class); - if (!is_null($reflect)) { + if (is_array($reflect)) { return $reflect[0]; } return null;