From 4ad9f58ce1c9b1297145d6e1ac50af1d4d01a05f Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Thu, 29 Feb 2024 06:34:26 -0600 Subject: [PATCH] use attribute rather than annotation --- notifier.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/notifier.rst b/notifier.rst index 7daefbfdffb..15866025eb6 100644 --- a/notifier.rst +++ b/notifier.rst @@ -360,13 +360,11 @@ you to send messages to chat services:: use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Notifier\ChatterInterface; use Symfony\Component\Notifier\Message\ChatMessage; - use Symfony\Component\Routing\Annotation\Route; + use Symfony\Component\Routing\Attribute\Route; class CheckoutController extends AbstractController { - /** - * @Route("/checkout/thankyou") - */ + #[Route('/checkout/thankyou')] public function thankyou(ChatterInterface $chatter): Response { $message = (new ChatMessage('You got a new invoice for 15 EUR.'))