eee
This commit is contained in:
+2
-2
@@ -167,8 +167,8 @@ class Container implements ContainerInterface
|
|||||||
throw new ReflectionException('Class ' . $className . ' cannot be instantiated');
|
throw new ReflectionException('Class ' . $className . ' cannot be instantiated');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($handler = $reflect->getConstructor()) !== null) {
|
if (empty($construct) && ($handler = $reflect->getConstructor()) !== null) {
|
||||||
$construct = $this->mergeParams($this->getMethodParams($handler), $construct);
|
$construct = $this->getMethodParams($handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
$newInstance = $reflect->newInstanceArgs($construct);
|
$newInstance = $reflect->newInstanceArgs($construct);
|
||||||
|
|||||||
Reference in New Issue
Block a user