改名
This commit is contained in:
@@ -128,12 +128,10 @@ class Container extends BaseObject
|
|||||||
private function resolve($class, $constrict, $config): object
|
private function resolve($class, $constrict, $config): object
|
||||||
{
|
{
|
||||||
[$reflect, $dependencies] = $this->resolveDependencies($class);
|
[$reflect, $dependencies] = $this->resolveDependencies($class);
|
||||||
if (empty($reflect)) {
|
|
||||||
throw new \Exception('asdjakkjgsg');
|
|
||||||
}
|
|
||||||
foreach ($constrict as $index => $param) {
|
foreach ($constrict as $index => $param) {
|
||||||
$dependencies[$index] = $param;
|
$dependencies[$index] = $param;
|
||||||
}
|
}
|
||||||
|
var_dump($reflect);
|
||||||
if (!$reflect->isInstantiable()) {
|
if (!$reflect->isInstantiable()) {
|
||||||
throw new NotFindClassException($reflect->getName());
|
throw new NotFindClassException($reflect->getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user