改名
This commit is contained in:
@@ -120,14 +120,12 @@ class Container extends BaseObject
|
|||||||
{
|
{
|
||||||
[$reflect, $dependencies] = $this->resolveDependencies($class);
|
[$reflect, $dependencies] = $this->resolveDependencies($class);
|
||||||
foreach ($constrict as $index => $param) {
|
foreach ($constrict as $index => $param) {
|
||||||
if (is_array($param)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$dependencies[$index] = $param;
|
$dependencies[$index] = $param;
|
||||||
}
|
}
|
||||||
if (!$reflect->isInstantiable()) {
|
if (!$reflect->isInstantiable()) {
|
||||||
throw new Exception($reflect->getName() . ' con\'t instantiable');
|
throw new Exception($reflect->getName() . ' con\'t instantiable');
|
||||||
}
|
}
|
||||||
|
var_dump($dependencies);
|
||||||
if (empty($config)) {
|
if (empty($config)) {
|
||||||
return $reflect->newInstanceArgs($dependencies ?? []);
|
return $reflect->newInstanceArgs($dependencies ?? []);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user