Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85afde5

Browse files
committed
minor #16521 [Notifier] Update route from annotation to attribute (94noni)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Update route from annotation to attribute I was reading some doc around this notifier component and found this is worth it Commits ------- eaa7f02 Update route from annotation to attribute
2 parents 054e9b3 + eaa7f02 commit 85afde5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

notifier.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ To send a notification, autowire the
479479

480480
class InvoiceController extends AbstractController
481481
{
482-
/**
483-
* @Route("/invoice/create")
484-
*/
482+
#[Route('/invoice/create')]
485483
public function create(NotifierInterface $notifier)
486484
{
487485
// ...
@@ -613,9 +611,7 @@ sent using the Slack transport::
613611
// ...
614612
class InvoiceController extends AbstractController
615613
{
616-
/**
617-
* @Route("/invoice/create")
618-
*/
614+
#[Route('/invoice/create')]
619615
public function invoice(NotifierInterface $notifier)
620616
{
621617
// ...

0 commit comments

Comments
 (0)