Commit 3f5a92ea authored by Pavel's avatar Pavel

Fixed wrong calling of the IoC resolver.

Signed-off-by: 's avatarPavel <proger.xp@gmail.com>
parent 1192abe3
...@@ -125,7 +125,7 @@ class IoC { ...@@ -125,7 +125,7 @@ class IoC {
return static::$singletons[$name]; 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 // 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 // the instance of the object in the container so we can resolve it next
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment