From 3f5a92ea5c9c2aaccbb87e834bdd94b8689ded39 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 19 Apr 2012 10:47:50 +0400 Subject: [PATCH] Fixed wrong calling of the IoC resolver. Signed-off-by: Pavel --- laravel/ioc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/ioc.php b/laravel/ioc.php index b02280f9..cfdafaf0 100644 --- a/laravel/ioc.php +++ b/laravel/ioc.php @@ -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