diff --git a/app/Config/Services.php b/app/Config/Services.php index abb6fbf..4774c00 100644 --- a/app/Config/Services.php +++ b/app/Config/Services.php @@ -2,7 +2,7 @@ namespace Config; -use App\Libraries\MyAuth\MyAuth; +use App\Services\Auth\AuthService; use CodeIgniter\Config\BaseService; /** @@ -30,12 +30,12 @@ class Services extends BaseService * return new \CodeIgniter\Example(); * } */ - public static function myauth($getShared = true): MyAuth + public static function myauth($getShared = true): AuthService { if ($getShared) { return static::getSharedInstance('myauth'); } else { - return new MyAuth(); + return new AuthService(); } } } diff --git a/app/Services/Auth/AuthService.php b/app/Services/Auth/AuthService.php index 7e8c379..b36d110 100644 --- a/app/Services/Auth/AuthService.php +++ b/app/Services/Auth/AuthService.php @@ -7,7 +7,7 @@ use App\Models\UserModel; use App\Services\CommonService; use CodeIgniter\Session\Session; // 참고:https://github.com/SyntaxPhoenix/iloclient -abstract class AuthService extends CommonService +class AuthService extends CommonService { private ?Session $_session = null; public function __construct() {}