modify
This commit is contained in:
@@ -178,9 +178,9 @@ class Container extends BaseObject
|
|||||||
} else {
|
} else {
|
||||||
$reflection = $this->_reflection[$class];
|
$reflection = $this->_reflection[$class];
|
||||||
}
|
}
|
||||||
if (!is_null($construct = $reflection->getConstructor())) {
|
// if (!is_null($construct = $reflection->getConstructor())) {
|
||||||
$constrict = $this->resolveMethodParam($construct);
|
// $constrict = $this->resolveMethodParam($construct);
|
||||||
}
|
// }
|
||||||
return [$reflection, $constrict];
|
return [$reflection, $constrict];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ class Container extends BaseObject
|
|||||||
return $reflect;
|
return $reflect;
|
||||||
}
|
}
|
||||||
$reflect = $this->resolveDependencies($class);
|
$reflect = $this->resolveDependencies($class);
|
||||||
if (!is_null($reflect)) {
|
if (is_array($reflect)) {
|
||||||
return $reflect[0];
|
return $reflect[0];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user