modify
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user