1 | <?php |
||
9 | class MailNotification implements NotificationInterface |
||
10 | { |
||
11 | use LoggerAwareTrait; |
||
12 | |||
13 | /** |
||
14 | * @var \Swift_Mailer |
||
15 | */ |
||
16 | protected $mailer; |
||
17 | |||
18 | /** |
||
19 | * @var EngineInterface |
||
20 | */ |
||
21 | protected $templateEngine; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $settings; |
||
27 | |||
28 | public function __construct(\Swift_Mailer $mailer, EngineInterface $engine, array $settings) |
||
34 | |||
35 | /** |
||
36 | * Create and send mail notification. |
||
37 | * |
||
38 | * @param array $vars Variables to use when rendering mail body. |
||
39 | * @return MailNotification $this Fluent interface. |
||
40 | */ |
||
41 | public function notify(array $vars = array()) |
||
67 | } |
||
68 |