cfmgrv4 init...10
This commit is contained in:
parent
06501b7970
commit
f25513e278
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Config;
|
namespace Config;
|
||||||
|
|
||||||
use App\Services\Auth\AuthService;
|
use App\Services\Auth\LocalService;
|
||||||
use CodeIgniter\Config\BaseService;
|
use CodeIgniter\Config\BaseService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,12 +30,12 @@ class Services extends BaseService
|
|||||||
* return new \CodeIgniter\Example();
|
* return new \CodeIgniter\Example();
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
public static function myauth($getShared = true): AuthService
|
public static function myauth($getShared = true): LocalService
|
||||||
{
|
{
|
||||||
if ($getShared) {
|
if ($getShared) {
|
||||||
return static::getSharedInstance('myauth');
|
return static::getSharedInstance('myauth');
|
||||||
} else {
|
} else {
|
||||||
return new AuthService();
|
return new LocalService();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user