From eaa7f027e53988a3153ece0a4142f9d65ceb1188 Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Thu, 17 Feb 2022 18:12:48 +0100 Subject: [PATCH] Update route from annotation to attribute --- notifier.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/notifier.rst b/notifier.rst index 1fb68b6416c..25a2ee442fb 100644 --- a/notifier.rst +++ b/notifier.rst @@ -479,9 +479,7 @@ To send a notification, autowire the class InvoiceController extends AbstractController { - /** - * @Route("/invoice/create") - */ + #[Route('/invoice/create')] public function create(NotifierInterface $notifier) { // ... @@ -613,9 +611,7 @@ sent using the Slack transport:: // ... class InvoiceController extends AbstractController { - /** - * @Route("/invoice/create") - */ + #[Route('/invoice/create')] public function invoice(NotifierInterface $notifier) { // ...