Fix auth bug and other resolver bugs.
This commit is contained in:
parent
cadfc3c50f
commit
aca2a2ae1c
|
@ -44,7 +44,9 @@ protected static function factory($driver)
|
||||||
{
|
{
|
||||||
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 @@ protected static function factory($driver)
|
||||||
{
|
{
|
||||||
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 @@ protected static function connector($driver)
|
||||||
{
|
{
|
||||||
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 @@ public static function factory($driver)
|
||||||
{
|
{
|
||||||
if (isset(static::$registrar[$driver]))
|
if (isset(static::$registrar[$driver]))
|
||||||
{
|
{
|
||||||
return static::$registrar[$driver]();
|
$resolver = static::$registrar[$driver];
|
||||||
|
|
||||||
|
return $resolver();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($driver)
|
switch ($driver)
|
||||||
|
|
Loading…
Reference in New Issue