add @throws BadRequestException to create user
This commit is contained in:
parent
a8bc84f246
commit
03e4781799
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ class CreateUser
|
||||||
private UserRepository $userRepo,
|
private UserRepository $userRepo,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws BadRequestException
|
||||||
|
*/
|
||||||
public function execute(CreateUserRequest $dto): void
|
public function execute(CreateUserRequest $dto): void
|
||||||
{
|
{
|
||||||
if ($dto->email === null) {
|
if ($dto->email === null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue