From 3eb3c7294728480d4d184659312e7306d68b39e8 Mon Sep 17 00:00:00 2001 From: Hossein Azizabadi Farahani Date: Sat, 16 Nov 2024 10:17:28 +0330 Subject: [PATCH] Update user module namespace --- bin/post-remove.php | 4 ++-- bin/post-update.php | 4 ++-- config/module.config.php | 2 +- src/Authentication/Oauth/Google.php | 2 +- src/Authentication/Oauth/Microsoft.php | 2 +- src/Authentication/Oauth/Oauth2.php | 2 +- src/Authentication/Oauth/OauthInterface.php | 2 +- .../Handler/Admin/Cache/DeleteHandlerFactory.php | 4 ++-- .../Handler/Admin/Cache/ListHandlerFactory.php | 4 ++-- .../Admin/Cache/PersistHandlerFactory.php | 4 ++-- .../Handler/Admin/Cache/ViewHandlerFactory.php | 4 ++-- .../Admin/Permission/Page/ListHandlerFactory.php | 6 +++--- .../Permission/Resource/ListHandlerFactory.php | 6 +++--- .../Admin/Permission/Role/ListHandlerFactory.php | 6 +++--- .../Handler/Admin/Profile/AddHandlerFactory.php | 6 +++--- .../Admin/Profile/CleanHandlerFactory.php | 6 +++--- .../Admin/Profile/DeleteHandlerFactory.php | 6 +++--- .../Handler/Admin/Profile/EditHandlerFactory.php | 6 +++--- .../Admin/Profile/ExportHandlerFactory.php | 10 +++++----- .../Handler/Admin/Profile/ListHandlerFactory.php | 6 +++--- .../Admin/Profile/PasswordHandlerFactory.php | 6 +++--- .../Admin/Profile/StatusHandlerFactory.php | 6 +++--- .../Handler/Admin/Profile/ViewHandlerFactory.php | 6 +++--- .../Handler/Admin/Role/AddHandlerFactory.php | 6 +++--- .../Handler/Admin/Role/DeleteHandlerFactory.php | 6 +++--- .../Handler/Admin/Role/EditHandlerFactory.php | 6 +++--- .../Handler/Admin/Role/ListHandlerFactory.php | 6 +++--- .../Email/RequestHandlerFactory.php | 6 +++--- .../Email/VerifyHandlerFactory.php | 6 +++--- .../Api/Authentication/LoginHandlerFactory.php | 8 ++++---- .../Api/Authentication/LogoutHandlerFactory.php | 8 ++++---- .../Authentication/Mfa/RequestHandlerFactory.php | 6 +++--- .../Authentication/Mfa/VerifyHandlerFactory.php | 6 +++--- .../Mobile/RequestHandlerFactory.php | 6 +++--- .../Mobile/VerifyHandlerFactory.php | 6 +++--- .../Oauth/GoogleHandlerFactory.php | 6 +++--- .../Oauth/MicrosoftHandlerFactory.php | 6 +++--- .../Oauth/Oauth2HandlerFactory.php | 8 ++++---- .../Oauth/SettingHandlerFactory.php | 6 +++--- .../Api/Authentication/RefreshHandlerFactory.php | 8 ++++---- .../Authentication/RegisterHandlerFactory.php | 8 ++++---- .../Handler/Api/Avatar/UploadHandlerFactory.php | 8 ++++---- .../Captcha/ReCaptcha/VerifyHandlerFactory.php | 4 ++-- .../Handler/Api/Password/AddHandlerFactory.php | 8 ++++---- .../Api/Password/UpdateHandlerFactory.php | 8 ++++---- .../Api/Profile/DeviceTokenHandlerFactory.php | 8 ++++---- .../Api/Profile/HistoryHandlerFactory.php | 8 ++++---- .../Handler/Api/Profile/UpdateHandlerFactory.php | 8 ++++---- .../Handler/Api/Profile/ViewHandlerFactory.php | 8 ++++---- src/Factory/Handler/InstallerHandlerFactory.php | 4 ++-- .../AuthenticationMiddlewareFactory.php | 8 ++++---- .../AuthorizationMiddlewareFactory.php | 8 ++++---- .../Middleware/AvatarUploadMiddlewareFactory.php | 8 ++++---- .../Middleware/ValidationMiddlewareFactory.php | 6 +++--- .../Repository/AccountRepositoryFactory.php | 16 ++++++++-------- .../Repository/PermissionRepositoryFactory.php | 10 +++++----- .../Repository/ProfileRepositoryFactory.php | 6 +++--- src/Factory/Repository/RoleRepositoryFactory.php | 8 ++++---- src/Factory/Service/AccountServiceFactory.php | 16 ++++++++-------- src/Factory/Service/AvatarServiceFactory.php | 6 +++--- src/Factory/Service/ExportServiceFactory.php | 4 ++-- src/Factory/Service/HistoryServiceFactory.php | 4 ++-- src/Factory/Service/PermissionServiceFactory.php | 6 +++--- src/Factory/Service/RoleServiceFactory.php | 8 ++++---- src/Factory/Service/TokenServiceFactory.php | 4 ++-- src/Factory/Validator/EmailValidatorFactory.php | 6 +++--- .../Validator/IdentityValidatorFactory.php | 6 +++--- src/Factory/Validator/MobileValidatorFactory.php | 6 +++--- src/Factory/Validator/NameValidatorFactory.php | 6 +++--- src/Factory/Validator/OtpValidatorFactory.php | 6 +++--- .../Validator/PasswordValidatorFactory.php | 6 +++--- src/Handler/Admin/Cache/DeleteHandler.php | 2 +- src/Handler/Admin/Cache/ListHandler.php | 2 +- src/Handler/Admin/Cache/PersistHandler.php | 2 +- src/Handler/Admin/Cache/ViewHandler.php | 2 +- .../Admin/Permission/Page/ListHandler.php | 4 ++-- .../Admin/Permission/Resource/ListHandler.php | 4 ++-- .../Admin/Permission/Role/ListHandler.php | 4 ++-- src/Handler/Admin/Profile/AddHandler.php | 4 ++-- src/Handler/Admin/Profile/CleanHandler.php | 4 ++-- src/Handler/Admin/Profile/DeleteHandler.php | 4 ++-- src/Handler/Admin/Profile/EditHandler.php | 4 ++-- src/Handler/Admin/Profile/ExportHandler.php | 6 +++--- src/Handler/Admin/Profile/ListHandler.php | 4 ++-- src/Handler/Admin/Profile/PasswordHandler.php | 4 ++-- src/Handler/Admin/Profile/StatusHandler.php | 4 ++-- src/Handler/Admin/Profile/ViewHandler.php | 4 ++-- src/Handler/Admin/Role/AddHandler.php | 4 ++-- src/Handler/Admin/Role/DeleteHandler.php | 4 ++-- src/Handler/Admin/Role/EditHandler.php | 4 ++-- src/Handler/Admin/Role/ListHandler.php | 4 ++-- .../Api/Authentication/Email/RequestHandler.php | 4 ++-- .../Api/Authentication/Email/VerifyHandler.php | 4 ++-- src/Handler/Api/Authentication/LoginHandler.php | 6 +++--- src/Handler/Api/Authentication/LogoutHandler.php | 6 +++--- .../Api/Authentication/Mfa/RequestHandler.php | 4 ++-- .../Api/Authentication/Mfa/VerifyHandler.php | 4 ++-- .../Api/Authentication/Mobile/RequestHandler.php | 4 ++-- .../Api/Authentication/Mobile/VerifyHandler.php | 4 ++-- .../Api/Authentication/Oauth/GoogleHandler.php | 6 +++--- .../Authentication/Oauth/MicrosoftHandler.php | 6 +++--- .../Api/Authentication/Oauth/Oauth2Handler.php | 6 +++--- .../Api/Authentication/Oauth/SettingHandler.php | 4 ++-- .../Api/Authentication/RefreshHandler.php | 6 +++--- .../Api/Authentication/RegisterHandler.php | 6 +++--- src/Handler/Api/Avatar/UploadHandler.php | 6 +++--- .../Api/Captcha/ReCaptcha/VerifyHandler.php | 2 +- src/Handler/Api/Password/AddHandler.php | 6 +++--- src/Handler/Api/Password/UpdateHandler.php | 6 +++--- src/Handler/Api/Profile/DeviceTokenHandler.php | 6 +++--- src/Handler/Api/Profile/HistoryHandler.php | 6 +++--- src/Handler/Api/Profile/UpdateHandler.php | 6 +++--- src/Handler/Api/Profile/ViewHandler.php | 6 +++--- src/Handler/InstallerHandler.php | 2 +- src/Middleware/AuthenticationMiddleware.php | 6 +++--- src/Middleware/AuthorizationMiddleware.php | 6 +++--- src/Middleware/AvatarUploadMiddleware.php | 6 +++--- src/Middleware/ValidationMiddleware.php | 16 ++++++++-------- src/Model/Account/Account.php | 2 +- src/Model/Account/AccountProfile.php | 2 +- src/Model/Account/Credential.php | 2 +- src/Model/Account/MultiFactor.php | 2 +- src/Model/Account/Profile.php | 2 +- src/Model/Permission/AssertRolesMatches.php | 2 +- src/Model/Permission/Page.php | 2 +- src/Model/Permission/Resource.php | 2 +- src/Model/Permission/Role.php | 2 +- src/Model/Role/Account.php | 2 +- src/Model/Role/Resource.php | 2 +- src/Module.php | 2 +- src/Repository/AccountRepository.php | 16 ++++++++-------- src/Repository/AccountRepositoryInterface.php | 4 ++-- src/Repository/PermissionRepository.php | 8 ++++---- src/Repository/PermissionRepositoryInterface.php | 8 ++++---- src/Repository/ProfileRepository.php | 4 ++-- src/Repository/ProfileRepositoryInterface.php | 2 +- src/Repository/RoleRepository.php | 6 +++--- src/Repository/RoleRepositoryInterface.php | 4 ++-- src/Service/AccountService.php | 4 ++-- src/Service/AvatarService.php | 2 +- src/Service/ExportService.php | 2 +- src/Service/HistoryService.php | 2 +- src/Service/PermissionService.php | 6 +++--- src/Service/RoleService.php | 4 ++-- src/Service/ServiceInterface.php | 2 +- src/Service/TokenService.php | 2 +- src/Validator/EmailValidator.php | 4 ++-- src/Validator/IdentityValidator.php | 4 ++-- src/Validator/MobileValidator.php | 4 ++-- src/Validator/NameValidator.php | 4 ++-- src/Validator/OtpValidator.php | 4 ++-- src/Validator/PasswordValidator.php | 4 ++-- 152 files changed, 397 insertions(+), 397 deletions(-) diff --git a/bin/post-remove.php b/bin/post-remove.php index fd0fbe2..91840d9 100644 --- a/bin/post-remove.php +++ b/bin/post-remove.php @@ -3,8 +3,8 @@ use Laminas\Config\Config; use Laminas\Db\Adapter\Adapter; use Pi\Core\Installer\Remove; -use User\Service\PermissionService; -use User\Service\RoleService; +use Pi\User\Service\PermissionService; +use Pi\User\Service\RoleService; // Composer autoloading include realpath(__DIR__ . '/../../../vendor/autoload.php'); diff --git a/bin/post-update.php b/bin/post-update.php index 1cedc5a..1378963 100644 --- a/bin/post-update.php +++ b/bin/post-update.php @@ -3,8 +3,8 @@ use Laminas\Config\Config; use Laminas\Db\Adapter\Adapter; use Pi\Core\Installer\Update; -use User\Service\PermissionService; -use User\Service\RoleService; +use Pi\User\Service\PermissionService; +use Pi\User\Service\RoleService; // Composer autoloading include realpath(__DIR__ . '/../../../vendor/autoload.php'); diff --git a/config/module.config.php b/config/module.config.php index 384da18..9b4c7e4 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -1,6 +1,6 @@