From 632cc88f43461f7c8dea159dd1907b4f6f081831 Mon Sep 17 00:00:00 2001 From: Olaf Braun Date: Tue, 7 May 2024 16:24:45 +0200 Subject: [PATCH] Rename `RegistrationNotification` to `CreateRegistrationNotification` --- .../install/files/lib/form/RegisterActivationForm.class.php | 4 ++-- wcfsetup/install/files/lib/form/RegisterForm.class.php | 4 ++-- ...ion.class.php => CreateRegistrationNotification.class.php} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename wcfsetup/install/files/lib/system/user/command/{RegistrationNotification.class.php => CreateRegistrationNotification.class.php} (97%) diff --git a/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php b/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php index 3d3ef7eed4..d504e5d01e 100644 --- a/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php @@ -12,7 +12,7 @@ use wcf\system\form\builder\field\TextFormField; use wcf\system\form\builder\field\validation\FormFieldValidationError; use wcf\system\form\builder\field\validation\FormFieldValidator; use wcf\system\request\LinkHandler; -use wcf\system\user\command\RegistrationNotification; +use wcf\system\user\command\CreateRegistrationNotification; use wcf\system\WCF; use wcf\util\HeaderUtil; use wcf\util\StringUtil; @@ -148,7 +148,7 @@ final class RegisterActivationForm extends AbstractFormBuilderForm } // User must be reloaded to get the correct activation status. - $command = new RegistrationNotification(new User($this->user->userID)); + $command = new CreateRegistrationNotification(new User($this->user->userID)); $command(); HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink(), $redirectText, 10, 'success', true); diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index a73204563e..ccce21d216 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -25,7 +25,7 @@ use wcf\system\option\user\UserOptionHandler; use wcf\system\request\LinkHandler; use wcf\system\user\authentication\configuration\UserAuthenticationConfigurationFactory; use wcf\system\user\authentication\LoginRedirect; -use wcf\system\user\command\RegistrationNotification; +use wcf\system\user\command\CreateRegistrationNotification; use wcf\system\user\group\assignment\UserGroupAssignmentHandler; use wcf\system\WCF; use wcf\util\HeaderUtil; @@ -467,7 +467,7 @@ class RegisterForm extends UserAddForm $this->message = 'wcf.user.register.success.awaitActivation'; } - $command = new RegistrationNotification($user); + $command = new CreateRegistrationNotification($user); $command(); if ($this->captchaObjectType) { diff --git a/wcfsetup/install/files/lib/system/user/command/RegistrationNotification.class.php b/wcfsetup/install/files/lib/system/user/command/CreateRegistrationNotification.class.php similarity index 97% rename from wcfsetup/install/files/lib/system/user/command/RegistrationNotification.class.php rename to wcfsetup/install/files/lib/system/user/command/CreateRegistrationNotification.class.php index c43d9bea2d..b3798162bf 100644 --- a/wcfsetup/install/files/lib/system/user/command/RegistrationNotification.class.php +++ b/wcfsetup/install/files/lib/system/user/command/CreateRegistrationNotification.class.php @@ -15,7 +15,7 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @since 6.1 */ -final class RegistrationNotification +final class CreateRegistrationNotification { public function __construct(private readonly User $user) { -- 2.20.1