Migrate first level template references to new notation

This commit is contained in:
Yassine Guedidi
2022-04-29 00:47:22 +02:00
parent 10f1bc5506
commit 9549a90e76
32 changed files with 50 additions and 50 deletions

View File

@ -49,7 +49,7 @@ class ManageController extends Controller
return $this->redirectToRoute('user_edit', ['id' => $user->getId()]);
}
return $this->render('WallabagUserBundle:Manage:new.html.twig', [
return $this->render('@WallabagUser/Manage/new.html.twig', [
'user' => $user,
'form' => $form->createView(),
]);
@ -94,7 +94,7 @@ class ManageController extends Controller
return $this->redirectToRoute('user_edit', ['id' => $user->getId()]);
}
return $this->render('WallabagUserBundle:Manage:edit.html.twig', [
return $this->render('@WallabagUser/Manage/edit.html.twig', [
'user' => $user,
'edit_form' => $form->createView(),
'delete_form' => $deleteForm->createView(),
@ -162,7 +162,7 @@ class ManageController extends Controller
}
}
return $this->render('WallabagUserBundle:Manage:index.html.twig', [
return $this->render('@WallabagUser/Manage/index.html.twig', [
'searchForm' => $form->createView(),
'users' => $pagerFanta,
]);

View File

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