1 | <?php |
||
20 | class TwigSwiftMailer implements MailerInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Swift_Mailer |
||
24 | */ |
||
25 | protected $mailer; |
||
26 | |||
27 | /** |
||
28 | * @var Twig_Environment |
||
29 | */ |
||
30 | protected $twig; |
||
31 | |||
32 | /** |
||
33 | * @var UrlGeneratorInterface |
||
34 | */ |
||
35 | protected $router; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $parameters; |
||
41 | |||
42 | public function __construct(Swift_Mailer $mailer, Twig_Environment $twig, UrlGeneratorInterface $router, array $parameters) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function sendConfirmationEmailMessage(UserInterface $user) |
||
66 | |||
67 | /** |
||
68 | * @param string $templateName |
||
69 | * @param array $context |
||
70 | * @param string|array $fromEmail |
||
71 | * @param string $toEmail |
||
72 | */ |
||
73 | protected function sendMessage($templateName, array $context, $fromEmail, $toEmail) |
||
99 | } |
||
100 |