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) { // ...