Skip to content

Commit 7a39632

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: use attribute rather than annotation
2 parents b3dde3a + 0cec85e commit 7a39632

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

notifier.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ send SMS messages::
183183
use Symfony\Component\HttpFoundation\Response;
184184
use Symfony\Component\Notifier\Message\SmsMessage;
185185
use Symfony\Component\Notifier\TexterInterface;
186-
use Symfony\Component\Routing\Annotation\Route;
186+
use Symfony\Component\Routing\Attribute\Route;
187187

188188
class SecurityController
189189
{
@@ -338,13 +338,11 @@ you to send messages to chat services::
338338
use Symfony\Component\HttpFoundation\Response;
339339
use Symfony\Component\Notifier\ChatterInterface;
340340
use Symfony\Component\Notifier\Message\ChatMessage;
341-
use Symfony\Component\Routing\Annotation\Route;
341+
use Symfony\Component\Routing\Attribute\Route;
342342

343343
class CheckoutController extends AbstractController
344344
{
345-
/**
346-
* @Route("/checkout/thankyou")
347-
*/
345+
#[Route('/checkout/thankyou')]
348346
public function thankyou(ChatterInterface $chatter): Response
349347
{
350348
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))

0 commit comments

Comments
 (0)