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