Upgrade to Twig 3

This commit is contained in:
Jeremy Benoist
2022-12-15 12:32:16 +01:00
parent e62a9d05cc
commit 28abfe264a
10 changed files with 313 additions and 58 deletions

View File

@ -77,7 +77,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
*/
public function sendAuthCode(TwoFactorInterface $user): void
{
$template = $this->twig->loadTemplate('@WallabagUser/TwoFactor/email_auth_code.html.twig');
$template = $this->twig->load('@WallabagUser/TwoFactor/email_auth_code.html.twig');
$subject = $template->renderBlock('subject', []);
$bodyHtml = $template->renderBlock('body_html', [