1 | <?php |
||
22 | class Mailer implements MailerInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var RouterInterface |
||
26 | */ |
||
27 | protected $router; |
||
28 | |||
29 | /** |
||
30 | * @var EngineInterface |
||
31 | */ |
||
32 | protected $templating; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $emails; |
||
38 | |||
39 | /** |
||
40 | * @var HashGeneratorInterface |
||
41 | */ |
||
42 | protected $hashGenerator; |
||
43 | |||
44 | /** |
||
45 | * @var \Swift_Mailer |
||
46 | */ |
||
47 | protected $mailer; |
||
48 | |||
49 | /** |
||
50 | * @var BlogInterface |
||
51 | */ |
||
52 | protected $blog; |
||
53 | |||
54 | /** |
||
55 | * @param \Swift_Mailer $mailer |
||
56 | */ |
||
57 | public function __construct($mailer, BlogInterface $blog, HashGeneratorInterface $generator, RouterInterface $router, EngineInterface $templating, array $emails) |
||
66 | |||
67 | public function sendCommentNotification(CommentInterface $comment): void |
||
82 | |||
83 | /** |
||
84 | * @param string $renderedTemplate |
||
85 | * @param string $fromEmail |
||
86 | * @param string $toEmail |
||
87 | */ |
||
88 | protected function sendEmailMessage($renderedTemplate, $fromEmail, $toEmail): void |
||
101 | } |
||
102 |