Skip to content

Commit 2ea307f

Browse files
committed
minor #19619 [Notifier] use attribute rather than annotation (tacman)
This PR was submitted for the 7.0 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Notifier] use attribute rather than annotation <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 4ad9f58 use attribute rather than annotation
2 parents b3534c7 + 4ad9f58 commit 2ea307f

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
@@ -360,13 +360,11 @@ you to send messages to chat services::
360360
use Symfony\Component\HttpFoundation\Response;
361361
use Symfony\Component\Notifier\ChatterInterface;
362362
use Symfony\Component\Notifier\Message\ChatMessage;
363-
use Symfony\Component\Routing\Annotation\Route;
363+
use Symfony\Component\Routing\Attribute\Route;
364364

365365
class CheckoutController extends AbstractController
366366
{
367-
/**
368-
* @Route("/checkout/thankyou")
369-
*/
367+
#[Route('/checkout/thankyou')]
370368
public function thankyou(ChatterInterface $chatter): Response
371369
{
372370
$message = (new ChatMessage('You got a new invoice for 15 EUR.'))

0 commit comments

Comments
 (0)