We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee8104 commit d224d72Copy full SHA for d224d72
notifier.rst
@@ -318,13 +318,11 @@ you to send messages to chat services::
318
use Symfony\Component\HttpFoundation\Response;
319
use Symfony\Component\Notifier\ChatterInterface;
320
use Symfony\Component\Notifier\Message\ChatMessage;
321
- use Symfony\Component\Routing\Annotation\Route;
+ use Symfony\Component\Routing\Attribute\Route;
322
323
class CheckoutController extends AbstractController
324
{
325
- /**
326
- * @Route("/checkout/thankyou")
327
- */
+ #[Route('/checkout/thankyou')]
328
public function thankyou(ChatterInterface $chatter): Response
329
330
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))
0 commit comments