cfmgrv4 init...4

This commit is contained in:
최준흠 2024-11-01 14:25:57 +09:00
parent 910693e82d
commit e67e3a0567
2 changed files with 4 additions and 4 deletions

View File

@ -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();
} }
} }
} }

View File

@ -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() {}