Skip to content

Commit 4ad9f58

Browse files
tacmanjaviereguiluz
authored andcommitted
use attribute rather than annotation
1 parent b3534c7 commit 4ad9f58

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

notifier.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,11 @@ you to send messages to chat services::
360360
use Symfony\Component\HttpFoundation\Response;
361361
use Symfony\Component\Notifier\ChatterInterface;
362362
use Symfony\Component\Notifier\Message\ChatMessage;
363-
use Symfony\Component\Routing\Annotation\Route;
363+
use Symfony\Component\Routing\Attribute\Route;
364364

365365
class CheckoutController extends AbstractController
366366
{
367-
/**
368-
* @Route("/checkout/thankyou")
369-
*/
367+
#[Route('/checkout/thankyou')]
370368
public function thankyou(ChatterInterface $chatter): Response
371369
{
372370
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))

0 commit comments

Comments
 (0)