fixing bug where parameters are not passed in IoC::resolve()

This commit is contained in:
Keith Loy 2012-06-01 23:29:43 -05:00
parent 63b1636d13
commit d0afdf7bb2
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public static function resolve($type, $parameters = array())
// 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
{ {