1 | <?php |
||
11 | final class DefaultMailSender implements MailSenderInterface |
||
12 | { |
||
13 | use SmartObject; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $templatesDir; |
||
17 | |||
18 | /** @var \SixtyEightPublishers\User\Common\Mail\Address */ |
||
19 | private $from; |
||
20 | |||
21 | /** @var array */ |
||
22 | private $subjects; |
||
23 | |||
24 | /** @var \Contributte\Mailing\IMailBuilderFactory */ |
||
25 | private $mailBuilderFactory; |
||
26 | |||
27 | /** |
||
28 | * @param string $templatesDir |
||
29 | * @param \SixtyEightPublishers\User\Common\Mail\Address $from |
||
30 | * @param array $subjects |
||
31 | * @param \Contributte\Mailing\IMailBuilderFactory $mailBuilderFactory |
||
32 | */ |
||
33 | public function __construct(string $templatesDir, Address $from, array $subjects, IMailBuilderFactory $mailBuilderFactory) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function send(string $mailName, array $to, array $args): void |
||
69 | } |
||
70 |