Fixed wrong calling of the IoC resolver.

Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
Pavel
2012-04-19 10:47:50 +04:00
parent 1192abe39c
commit 3f5a92ea5c

View File

@@ -125,7 +125,7 @@ class IoC {
return static::$singletons[$name];
}
$object = call_user_func(static::$registry[$name]['resolver'], $parameters);
$object = call_user_func_array(static::$registry[$name]['resolver'], $parameters);
// If the resolver is registering as a singleton resolver, we will cache
// the instance of the object in the container so we can resolve it next