File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ send SMS messages::
183
183
use Symfony\Component\HttpFoundation\Response;
184
184
use Symfony\Component\Notifier\Message\SmsMessage;
185
185
use Symfony\Component\Notifier\TexterInterface;
186
- use Symfony\Component\Routing\Annotation \Route;
186
+ use Symfony\Component\Routing\Attribute \Route;
187
187
188
188
class SecurityController
189
189
{
@@ -338,13 +338,11 @@ you to send messages to chat services::
338
338
use Symfony\Component\HttpFoundation\Response;
339
339
use Symfony\Component\Notifier\ChatterInterface;
340
340
use Symfony\Component\Notifier\Message\ChatMessage;
341
- use Symfony\Component\Routing\Annotation \Route;
341
+ use Symfony\Component\Routing\Attribute \Route;
342
342
343
343
class CheckoutController extends AbstractController
344
344
{
345
- /**
346
- * @Route("/checkout/thankyou")
347
- */
345
+ #[Route('/checkout/thankyou')]
348
346
public function thankyou(ChatterInterface $chatter): Response
349
347
{
350
348
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))
You can’t perform that action at this time.
0 commit comments