cfmgrv4 init...4
This commit is contained in:
parent
910693e82d
commit
e67e3a0567
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Config;
|
namespace Config;
|
||||||
|
|
||||||
use App\Libraries\MyAuth\MyAuth;
|
use App\Services\Auth\AuthService;
|
||||||
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): MyAuth
|
public static function myauth($getShared = true): AuthService
|
||||||
{
|
{
|
||||||
if ($getShared) {
|
if ($getShared) {
|
||||||
return static::getSharedInstance('myauth');
|
return static::getSharedInstance('myauth');
|
||||||
} else {
|
} else {
|
||||||
return new MyAuth();
|
return new AuthService();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ use App\Models\UserModel;
|
|||||||
use App\Services\CommonService;
|
use App\Services\CommonService;
|
||||||
use CodeIgniter\Session\Session;
|
use CodeIgniter\Session\Session;
|
||||||
// 참고:https://github.com/SyntaxPhoenix/iloclient
|
// 참고:https://github.com/SyntaxPhoenix/iloclient
|
||||||
abstract class AuthService extends CommonService
|
class AuthService extends CommonService
|
||||||
{
|
{
|
||||||
private ?Session $_session = null;
|
private ?Session $_session = null;
|
||||||
public function __construct() {}
|
public function __construct() {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user