modify
This commit is contained in:
+9
-12
@@ -97,10 +97,6 @@ class Container extends BaseObject
|
|||||||
throw new NotFindClassException($reflect->getName());
|
throw new NotFindClassException($reflect->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class == HttpHeaders::class) {
|
|
||||||
var_dump($class);
|
|
||||||
}
|
|
||||||
|
|
||||||
$dependencies = $this->_constructs[$class] ?? [];
|
$dependencies = $this->_constructs[$class] ?? [];
|
||||||
if (empty($config)) {
|
if (empty($config)) {
|
||||||
return $reflect->newInstanceArgs($dependencies);
|
return $reflect->newInstanceArgs($dependencies);
|
||||||
@@ -147,14 +143,15 @@ class Container extends BaseObject
|
|||||||
$reflection = $this->_reflection[$class];
|
$reflection = $this->_reflection[$class];
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (!is_null($construct = $reflection->getConstructor())) {
|
if (!is_null($construct = $reflection->getConstructor())) {
|
||||||
// $this->_constructs[$class] = $this->resolveMethodParam($construct, $constrict);
|
$this->_constructs[$class] = $this->resolveMethodParam($construct, $constrict);
|
||||||
// } else {
|
} else {
|
||||||
// if ($class == HttpHeaders::class) {
|
$this->_constructs[$class] = $constrict;
|
||||||
// var_dump($constrict);
|
}
|
||||||
// }
|
|
||||||
// $this->_constructs[$class] = $constrict;
|
if ($class == HttpHeaders::class) {
|
||||||
// }
|
var_dump($constrict, $this->_constructs[$class]);
|
||||||
|
}
|
||||||
return $reflection;
|
return $reflection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user