- $translator = new Translator('en');
- $translator->addLoader('array', new ArrayLoader());
- $translator->addResource('array', array(
- 'auth_code.mailer.subject' => 'auth_code subject',
- 'auth_code.mailer.body' => 'Hi %user%, here is the code: %code% and the support: %support%',
- ), 'en', 'wallabag_user');
+ $twigTemplate = <<<TWIG
+{% block subject %}subject{% endblock %}
+{% block body_html %}html body {{ code }}{% endblock %}
+{% block body_text %}text body {{ support_url }}{% endblock %}
+TWIG;