From a3c5145d7a1957e9f5d37dc00898231eb39f55d7 Mon Sep 17 00:00:00 2001 From: "andrea.scaramucci" Date: Tue, 27 Aug 2024 14:31:52 +0200 Subject: [PATCH] Added more classes to the Bootstrap.php classMap --- CHANGELOG.md | 2 +- src/User/Bootstrap.php | 29 ++++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fa506c1..8abb5786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ - Fix: Social Network Auth (eluhr) - Enh #532: /user/registration/register now shows form validation errors - Enh: Allow/suggest new v3 releases of 2amigos 2fa dependencies: 2fa-library, qrcode-library (TonisOrmisson) -- Ehh: Added UserBlockService to Bootstrap classMap +- Ehh: Added all the classes to the Bootstrap.php classMap - Enh: Added option to disable viewing any other user's profile for non-admin users (TonisOrmisson) - Ehn: updated Estonian (et) translation by (TonisOrmisson) - Ehn: use recaptcha.net instead of google.com (Eseperio) diff --git a/src/User/Bootstrap.php b/src/User/Bootstrap.php index fd7053de..0f5ad669 100755 --- a/src/User/Bootstrap.php +++ b/src/User/Bootstrap.php @@ -399,13 +399,17 @@ protected function buildClassMap(array $userClassMap) 'Assignment', 'Permission', 'Role', - 'SessionHistory' + 'SessionHistory', + 'AbstractAuthItem', + 'Rule', ], 'Da\User\Search' => [ 'UserSearch', 'PermissionSearch', 'RoleSearch', 'SessionHistorySearch', + 'RuleSearch', + 'AbstractAuthItemSearch', ], 'Da\User\Form' => [ 'RegistrationForm', @@ -413,13 +417,36 @@ protected function buildClassMap(array $userClassMap) 'LoginForm', 'SettingsForm', 'RecoveryForm', + 'GdprDeleteForm', ], 'Da\User\Service' => [ + 'AccountConfirmationService', + 'AuthItemEditionService', + 'AuthRuleEditionService', + 'EmailChangeService', 'MailService', + 'PasswordExpireService', + 'PasswordRecoveryService', + 'ResendConfirmationService', + 'ResetPasswordService', + 'SocialNetworkAccountConnectService', + 'SocialNetworkAuthenticateService', + 'SwitchIdentityService', + 'TwoFactorEmailCodeGeneratorService', + 'TwoFactorQrCodeUriGeneratorService', + 'TwoFactorSmsCodeGeneratorService', + 'UpdateAuthAssignmentsService', 'UserBlockService', + 'UserConfirmationService', + 'UserCreateService', + 'UserRegisterService', ], 'Da\User\Helper' => [ + 'AuthHelper', + 'ClassMapHelper', + 'MigrationHelper', 'SecurityHelper', + 'TimezoneHelper', ] ];