fixing bug where parameters are not passed in IoC::resolve()
This commit is contained in:
@@ -114,7 +114,7 @@ class IoC {
|
|||||||
// its nested dependencies recursively until they are each resolved.
|
// its nested dependencies recursively until they are each resolved.
|
||||||
if ($concrete == $type or $concrete instanceof Closure)
|
if ($concrete == $type or $concrete instanceof Closure)
|
||||||
{
|
{
|
||||||
$object = static::build($concrete);
|
$object = static::build($concrete, $parameters);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user