1 | <?php |
||
25 | final class TwigUserMailableFactory implements UserMailableFactory |
||
26 | { |
||
27 | /** |
||
28 | * The from email address. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | private $from; |
||
33 | |||
34 | /** |
||
35 | * The Twig. |
||
36 | * |
||
37 | * @var \Twig_Environment |
||
38 | */ |
||
39 | private $twig; |
||
40 | |||
41 | /** |
||
42 | * The view name. |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | private $view; |
||
47 | |||
48 | /** |
||
49 | * Constructor. |
||
50 | * |
||
51 | * @param \Twig_Environment $twig The Twig environment |
||
52 | * @param string $aView The view name |
||
53 | * @param string $aFrom The from email address |
||
54 | */ |
||
55 | public function __construct(\Twig_Environment $twig, $aView, $aFrom) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function build($to, array $parameters = []) |
||
74 | } |
||
75 |