| 1 | <?php |
||
| 10 | class ConfirmEmail |
||
| 11 | { |
||
| 12 | private $tokenizer; |
||
| 13 | |||
| 14 | public function __construct(Tokenizer $tokenizer) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Confirm email |
||
| 21 | * |
||
| 22 | * @param string $token |
||
| 23 | * @throws BadRequestHttpException |
||
| 24 | */ |
||
| 25 | public function setConfirmed(string $token): void |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Sends an email with a link, for confirm the email |
||
| 44 | * |
||
| 45 | * @throws UserException |
||
| 46 | */ |
||
| 47 | public function sendEmail(User $user): void |
||
| 70 | } |
||
| 71 |