| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function handle(SendVerificationToken $resendVerificationToken): void |
||
| 33 | { |
||
| 34 | $email = $resendVerificationToken->email(); |
||
| 35 | |||
| 36 | /** @var ShopUserInterface $user */ |
||
| 37 | $user = $this->userRepository->findOneByEmail($email); |
||
| 38 | |||
| 39 | Assert::notNull($user, sprintf('User with %s email has not been found.', $email)); |
||
| 40 | Assert::notNull($user->getEmailVerificationToken(), sprintf('User with %s email has not verification token defined.', $email)); |
||
| 41 | |||
| 42 | $this->sender->send(Emails::EMAIL_VERIFICATION_TOKEN, [$email], ['user' => $user]); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |