@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Azine\EmailUpdateConfirmationBundle\Services; |
4 | 4 | |
5 | 5 | use Azine\EmailUpdateConfirmationBundle\AzineEmailUpdateConfirmationEvents; |
6 | -use Azine\EmailUpdateConfirmationBundle\EventListener\FlashListener; |
|
7 | 6 | use Azine\EmailUpdateConfirmationBundle\Mailer\EmailUpdateConfirmationMailerInterface; |
8 | 7 | use FOS\UserBundle\Event\UserEvent; |
9 | 8 | use FOS\UserBundle\Mailer\MailerInterface; |
@@ -41,6 +41,10 @@ discard block |
||
41 | 41 | private $eventDispatcher; |
42 | 42 | private $redirectRoute; |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $redirectRoute |
|
46 | + * @param string $mode |
|
47 | + */ |
|
44 | 48 | public function __construct( |
45 | 49 | Router $router, |
46 | 50 | TokenGenerator $tokenGenerator, |
@@ -66,7 +70,7 @@ discard block |
||
66 | 70 | /** |
67 | 71 | * Get $mailer. |
68 | 72 | * |
69 | - * @return MailerInterface |
|
73 | + * @return EmailUpdateConfirmationMailerInterface |
|
70 | 74 | */ |
71 | 75 | public function getMailer() |
72 | 76 | { |
@@ -151,6 +155,8 @@ discard block |
||
151 | 155 | /** |
152 | 156 | * Encrypt email value with specified user confirmation token. |
153 | 157 | * |
158 | + * @param string|null $userConfirmationToken |
|
159 | + * @param string $email |
|
154 | 160 | * @return string Encrypted email |
155 | 161 | */ |
156 | 162 | public function encryptEmailValue($userConfirmationToken, $email) |