diff --git a/app/Services/Auth/AuthService.php b/app/Services/Auth/AuthService.php index 013ef56..8c890b7 100644 --- a/app/Services/Auth/AuthService.php +++ b/app/Services/Auth/AuthService.php @@ -13,7 +13,10 @@ class AuthService extends CommonService private ?Session $_session = null; private ?UserModel $_model = null; - public function __construct() {} + public function __construct(string $class_name, string $class_path) + { + parent::__construct($class_name, $class_path); + } final public function getSession(): Session { diff --git a/app/Services/Auth/GoogleService.php b/app/Services/Auth/GoogleService.php index 691bc66..5f41c0b 100644 --- a/app/Services/Auth/GoogleService.php +++ b/app/Services/Auth/GoogleService.php @@ -14,7 +14,7 @@ class GoogleService extends AuthService public function __construct(mixed $mySocket) { $this->_mySocket = $mySocket; - parent::__construct(); + parent::__construct("Google", class_path: "Google"); } public function getMySocket(string $access_code): mixed diff --git a/app/Services/Auth/LocalService.php b/app/Services/Auth/LocalService.php index 265510c..0f6cacd 100644 --- a/app/Services/Auth/LocalService.php +++ b/app/Services/Auth/LocalService.php @@ -8,7 +8,7 @@ class LocalService extends AuthService { public function __construct() { - parent::__construct(); + parent::__construct("Local", class_path: "Local"); } public function checkUser(array $formDatas): UserEntity