From e66b990a14f58fdeef1ed66bd6f744f84ae3a9ac Mon Sep 17 00:00:00 2001 From: Maxime Doutreluingne Date: Sat, 19 Feb 2022 22:11:24 +0100 Subject: [PATCH] Update route from annotation to attribute --- mailer.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mailer.rst b/mailer.rst index 8a27f222d4d..ef99bb86138 100644 --- a/mailer.rst +++ b/mailer.rst @@ -345,9 +345,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object:: class MailerController extends AbstractController { - /** - * @Route("/email") - */ + #[Route('/email')] public function sendEmail(MailerInterface $mailer): Response { $email = (new Email())