From acc4bc64cf417dac1e89c3eb2b6a72ff08fddc4e Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Sat, 11 Dec 2021 19:30:19 +0330 Subject: [PATCH] refactor: rename --- .../Authentication/Actions/ForgotPasswordAction.php | 4 ++-- .../Mails/{UserForgotPasswordMail.php => ForgotPassword.php} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename app/Containers/AppSection/Authentication/Mails/{UserForgotPasswordMail.php => ForgotPassword.php} (92%) diff --git a/app/Containers/AppSection/Authentication/Actions/ForgotPasswordAction.php b/app/Containers/AppSection/Authentication/Actions/ForgotPasswordAction.php index 10a22f759..0195272fb 100644 --- a/app/Containers/AppSection/Authentication/Actions/ForgotPasswordAction.php +++ b/app/Containers/AppSection/Authentication/Actions/ForgotPasswordAction.php @@ -2,7 +2,7 @@ namespace App\Containers\AppSection\Authentication\Actions; -use App\Containers\AppSection\Authentication\Mails\UserForgotPasswordMail; +use App\Containers\AppSection\Authentication\Mails\ForgotPassword; use App\Containers\AppSection\Authentication\Tasks\CreatePasswordResetTokenTask; use App\Containers\AppSection\Authentication\UI\API\Requests\ForgotPasswordRequest; use App\Containers\AppSection\User\Tasks\FindUserByEmailTask; @@ -30,7 +30,7 @@ public function run(ForgotPasswordRequest $request): bool $token = app(CreatePasswordResetTokenTask::class)->run($user); - Mail::send(new UserForgotPasswordMail($user, $token, $sanitizedData['reseturl'])); + Mail::send(new ForgotPassword($user, $token, $sanitizedData['reseturl'])); return true; } diff --git a/app/Containers/AppSection/Authentication/Mails/UserForgotPasswordMail.php b/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php similarity index 92% rename from app/Containers/AppSection/Authentication/Mails/UserForgotPasswordMail.php rename to app/Containers/AppSection/Authentication/Mails/ForgotPassword.php index 81a2c2194..d865cc6be 100644 --- a/app/Containers/AppSection/Authentication/Mails/UserForgotPasswordMail.php +++ b/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php @@ -7,7 +7,7 @@ use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; -class UserForgotPasswordMail extends Mail implements ShouldQueue +class ForgotPassword extends Mail implements ShouldQueue { use Queueable;