diff options
Diffstat (limited to 'src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php')
-rw-r--r-- | src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php index 2797efde..b25ba685 100644 --- a/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php +++ b/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php | |||
@@ -4,6 +4,7 @@ namespace Wallabag\UserBundle\Mailer; | |||
4 | 4 | ||
5 | use Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface; | 5 | use Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface; |
6 | use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface; | 6 | use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface; |
7 | use Twig\Environment; | ||
7 | 8 | ||
8 | /** | 9 | /** |
9 | * Custom mailer for TwoFactorBundle email. | 10 | * Custom mailer for TwoFactorBundle email. |
@@ -21,7 +22,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface | |||
21 | /** | 22 | /** |
22 | * Twig to render the html's email. | 23 | * Twig to render the html's email. |
23 | * | 24 | * |
24 | * @var \Twig_Environment | 25 | * @var Environment |
25 | */ | 26 | */ |
26 | private $twig; | 27 | private $twig; |
27 | 28 | ||
@@ -56,14 +57,14 @@ class AuthCodeMailer implements AuthCodeMailerInterface | |||
56 | /** | 57 | /** |
57 | * Initialize the auth code mailer with the SwiftMailer object. | 58 | * Initialize the auth code mailer with the SwiftMailer object. |
58 | * | 59 | * |
59 | * @param \Swift_Mailer $mailer | 60 | * @param \Swift_Mailer $mailer |
60 | * @param \Twig_Environment $twig | 61 | * @param Environment $twig |
61 | * @param string $senderEmail | 62 | * @param string $senderEmail |
62 | * @param string $senderName | 63 | * @param string $senderName |
63 | * @param string $supportUrl wallabag support url | 64 | * @param string $supportUrl wallabag support url |
64 | * @param string $wallabagUrl wallabag instance url | 65 | * @param string $wallabagUrl wallabag instance url |
65 | */ | 66 | */ |
66 | public function __construct(\Swift_Mailer $mailer, \Twig_Environment $twig, $senderEmail, $senderName, $supportUrl, $wallabagUrl) | 67 | public function __construct(\Swift_Mailer $mailer, Environment $twig, $senderEmail, $senderName, $supportUrl, $wallabagUrl) |
67 | { | 68 | { |
68 | $this->mailer = $mailer; | 69 | $this->mailer = $mailer; |
69 | $this->twig = $twig; | 70 | $this->twig = $twig; |