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