Skip to content

Commit 0cec85e

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: use attribute rather than annotation
2 parents bee8104 + da8472a commit 0cec85e

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
@@ -169,7 +169,7 @@ send SMS messages::
169169
use Symfony\Component\HttpFoundation\Response;
170170
use Symfony\Component\Notifier\Message\SmsMessage;
171171
use Symfony\Component\Notifier\TexterInterface;
172-
use Symfony\Component\Routing\Annotation\Route;
172+
use Symfony\Component\Routing\Attribute\Route;
173173

174174
class SecurityController
175175
{
@@ -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)