From aca2a2ae1c4b0e7c94c69c2c48c83341a24a62de Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 2 May 2012 16:52:55 -0500 Subject: [PATCH] Fix auth bug and other resolver bugs. --- laravel/auth.php | 4 +++- laravel/cache.php | 4 +++- laravel/database.php | 4 +++- laravel/session.php | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/laravel/auth.php b/laravel/auth.php index ac86d5ea..ad4869c1 100644 --- a/laravel/auth.php +++ b/laravel/auth.php @@ -44,7 +44,9 @@ protected static function factory($driver) { if (isset(static::$registrar[$driver])) { - return static::$registrar[$driver](); + $resolver = static::$registrar[$driver]; + + return $resolver(); } switch ($driver) diff --git a/laravel/cache.php b/laravel/cache.php index f07ff115..02b86e4e 100644 --- a/laravel/cache.php +++ b/laravel/cache.php @@ -54,7 +54,9 @@ protected static function factory($driver) { if (isset(static::$registrar[$driver])) { - return static::$registrar[$driver](); + $resolver = static::$registrar[$driver]; + + return $resolver(); } switch ($driver) diff --git a/laravel/database.php b/laravel/database.php index ac498e3d..e403616d 100644 --- a/laravel/database.php +++ b/laravel/database.php @@ -75,7 +75,9 @@ protected static function connector($driver) { if (isset(static::$registrar[$driver])) { - return static::$registrar[$driver]['connector'](); + $resolver = static::$registrar[$driver]['connector']; + + return $resolver(); } switch ($driver) diff --git a/laravel/session.php b/laravel/session.php index 42b82935..b5b833fa 100644 --- a/laravel/session.php +++ b/laravel/session.php @@ -56,7 +56,9 @@ public static function factory($driver) { if (isset(static::$registrar[$driver])) { - return static::$registrar[$driver](); + $resolver = static::$registrar[$driver]; + + return $resolver(); } switch ($driver)