Commit aca2a2ae authored by Taylor Otwell's avatar Taylor Otwell

Fix auth bug and other resolver bugs.

parent cadfc3c5
...@@ -44,7 +44,9 @@ class Auth { ...@@ -44,7 +44,9 @@ class Auth {
{ {
if (isset(static::$registrar[$driver])) if (isset(static::$registrar[$driver]))
{ {
return static::$registrar[$driver](); $resolver = static::$registrar[$driver];
return $resolver();
} }
switch ($driver) switch ($driver)
......
...@@ -54,7 +54,9 @@ class Cache { ...@@ -54,7 +54,9 @@ class Cache {
{ {
if (isset(static::$registrar[$driver])) if (isset(static::$registrar[$driver]))
{ {
return static::$registrar[$driver](); $resolver = static::$registrar[$driver];
return $resolver();
} }
switch ($driver) switch ($driver)
......
...@@ -75,7 +75,9 @@ class Database { ...@@ -75,7 +75,9 @@ class Database {
{ {
if (isset(static::$registrar[$driver])) if (isset(static::$registrar[$driver]))
{ {
return static::$registrar[$driver]['connector'](); $resolver = static::$registrar[$driver]['connector'];
return $resolver();
} }
switch ($driver) switch ($driver)
......
...@@ -56,7 +56,9 @@ class Session { ...@@ -56,7 +56,9 @@ class Session {
{ {
if (isset(static::$registrar[$driver])) if (isset(static::$registrar[$driver]))
{ {
return static::$registrar[$driver](); $resolver = static::$registrar[$driver];
return $resolver();
} }
switch ($driver) switch ($driver)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment