Skip to content

Commit d224d72

Browse files
authored
use attribute rather than annotation
1 parent bee8104 commit d224d72

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
@@ -318,13 +318,11 @@ you to send messages to chat services::
318318
use Symfony\Component\HttpFoundation\Response;
319319
use Symfony\Component\Notifier\ChatterInterface;
320320
use Symfony\Component\Notifier\Message\ChatMessage;
321-
use Symfony\Component\Routing\Annotation\Route;
321+
use Symfony\Component\Routing\Attribute\Route;
322322

323323
class CheckoutController extends AbstractController
324324
{
325-
/**
326-
* @Route("/checkout/thankyou")
327-
*/
325+
#[Route('/checkout/thankyou')]
328326
public function thankyou(ChatterInterface $chatter): Response
329327
{
330328
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))

0 commit comments

Comments
 (0)