From 88d3d74b994030e11523669bfbc9922350c3c90d Mon Sep 17 00:00:00 2001 From: Mike Almond Date: Mon, 24 Jun 2013 14:08:02 -0400 Subject: [PATCH] Pass in the proper variable when calling ReflectionClass --- alloy/lib/Alloy/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alloy/lib/Alloy/Kernel.php b/alloy/lib/Alloy/Kernel.php index b46fe16..67391ba 100644 --- a/alloy/lib/Alloy/Kernel.php +++ b/alloy/lib/Alloy/Kernel.php @@ -161,7 +161,7 @@ public function factory($className, array $params = array()) $instance = new $className($params[0], $params[1], $params[2]); } else { $class = new \ReflectionClass($className); - $instance = $class->newInstanceArgs($args); + $instance = $class->newInstanceArgs($params); } return $this->setInstance($instanceHash, $instance); @@ -838,4 +838,4 @@ public function __sleep() { return array(); } -} \ No newline at end of file +}