Skip to content

Commit

Permalink
remove useless event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Sep 28, 2021
1 parent f2f3bb4 commit 1d6cbe6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
3 changes: 0 additions & 3 deletions app/Containers/AppSection/User/Actions/RegisterUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace App\Containers\AppSection\User\Actions;

use App\Containers\AppSection\User\Events\UserRegisteredEvent;
use App\Containers\AppSection\User\Mails\UserRegisteredMail;
use App\Containers\AppSection\User\Models\User;
use App\Containers\AppSection\User\Notifications\UserRegisteredNotification;
use App\Containers\AppSection\User\Tasks\CreateUserByCredentialsTask;
use App\Containers\AppSection\User\UI\API\Requests\RegisterUserRequest;
use App\Ship\Exceptions\CreateResourceFailedException;
use App\Ship\Parents\Actions\Action;
use Illuminate\Contracts\Bus\Dispatcher;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Notification;

Expand All @@ -33,7 +31,6 @@ public function run(RegisterUserRequest $request): User

Mail::send(new UserRegisteredMail($user));
Notification::send($user, new UserRegisteredNotification($user));
app(Dispatcher::class)->dispatch(new UserRegisteredEvent($user));

return $user;
}
Expand Down
38 changes: 0 additions & 38 deletions app/Containers/AppSection/User/Events/UserRegisteredEvent.php

This file was deleted.

0 comments on commit 1d6cbe6

Please sign in to comment.