Browse Source

Merge pull request #559 from ProgerXP/patch-ioc-resolve

IoC::resolve() - call_user_func_ARRAY()
Taylor Otwell 12 years ago
parent
commit
45c9d15442
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/ioc.php

+ 1 - 1
laravel/ioc.php

@@ -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