Browse Source

Fix auth bug and other resolver bugs.

Taylor Otwell 12 years ago
parent
commit
aca2a2ae1c
4 changed files with 12 additions and 4 deletions
  1. 3 1
      laravel/auth.php
  2. 3 1
      laravel/cache.php
  3. 3 1
      laravel/database.php
  4. 3 1
      laravel/session.php

+ 3 - 1
laravel/auth.php

@@ -44,7 +44,9 @@ class Auth {
 	{
 		if (isset(static::$registrar[$driver]))
 		{
-			return static::$registrar[$driver]();
+			$resolver = static::$registrar[$driver];
+
+			return $resolver();
 		}
 
 		switch ($driver)

+ 3 - 1
laravel/cache.php

@@ -54,7 +54,9 @@ class Cache {
 	{
 		if (isset(static::$registrar[$driver]))
 		{
-			return static::$registrar[$driver]();
+			$resolver = static::$registrar[$driver];
+
+			return $resolver();
 		}
 
 		switch ($driver)

+ 3 - 1
laravel/database.php

@@ -75,7 +75,9 @@ class Database {
 	{
 		if (isset(static::$registrar[$driver]))
 		{
-			return static::$registrar[$driver]['connector']();
+			$resolver = static::$registrar[$driver]['connector'];
+
+			return $resolver();
 		}
 
 		switch ($driver)

+ 3 - 1
laravel/session.php

@@ -56,7 +56,9 @@ class Session {
 	{
 		if (isset(static::$registrar[$driver]))
 		{
-			return static::$registrar[$driver]();
+			$resolver = static::$registrar[$driver];
+
+			return $resolver();
 		}
 
 		switch ($driver)