@@ -356,7 +356,7 @@ and save it::
356356 use App\Entity\Product;
357357 use Doctrine\ORM\EntityManagerInterface;
358358 use Symfony\Component\HttpFoundation\Response;
359- use Symfony\Component\Routing\Annotation \Route;
359+ use Symfony\Component\Routing\Attribute \Route;
360360
361361 class ProductController extends AbstractController
362362 {
@@ -438,7 +438,7 @@ Consider the following controller code::
438438
439439 use App\Entity\Product;
440440 use Symfony\Component\HttpFoundation\Response;
441- use Symfony\Component\Routing\Annotation \Route;
441+ use Symfony\Component\Routing\Attribute \Route;
442442 use Symfony\Component\Validator\Validator\ValidatorInterface;
443443 // ...
444444
@@ -502,7 +502,7 @@ be able to go to ``/product/1`` to see your new product::
502502 use App\Entity\Product;
503503 use Doctrine\ORM\EntityManagerInterface;
504504 use Symfony\Component\HttpFoundation\Response;
505- use Symfony\Component\Routing\Annotation \Route;
505+ use Symfony\Component\Routing\Attribute \Route;
506506 // ...
507507
508508 class ProductController extends AbstractController
@@ -535,7 +535,7 @@ and injected by the dependency injection container::
535535 use App\Entity\Product;
536536 use App\Repository\ProductRepository;
537537 use Symfony\Component\HttpFoundation\Response;
538- use Symfony\Component\Routing\Annotation \Route;
538+ use Symfony\Component\Routing\Attribute \Route;
539539 // ...
540540
541541 class ProductController extends AbstractController
@@ -624,7 +624,7 @@ automatically! You can simplify the controller to::
624624 use App\Entity\Product;
625625 use App\Repository\ProductRepository;
626626 use Symfony\Component\HttpFoundation\Response;
627- use Symfony\Component\Routing\Annotation \Route;
627+ use Symfony\Component\Routing\Attribute \Route;
628628 // ...
629629
630630 class ProductController extends AbstractController
@@ -700,7 +700,7 @@ the ``EntityValueResolver`` behavior by using the `MapEntity options`_ ::
700700 use App\Entity\Product;
701701 use Symfony\Bridge\Doctrine\Attribute\MapEntity;
702702 use Symfony\Component\HttpFoundation\Response;
703- use Symfony\Component\Routing\Annotation \Route;
703+ use Symfony\Component\Routing\Attribute \Route;
704704 // ...
705705
706706 class ProductController extends AbstractController
@@ -841,7 +841,7 @@ with any PHP model::
841841 use App\Repository\ProductRepository;
842842 use Doctrine\ORM\EntityManagerInterface;
843843 use Symfony\Component\HttpFoundation\Response;
844- use Symfony\Component\Routing\Annotation \Route;
844+ use Symfony\Component\Routing\Attribute \Route;
845845 // ...
846846
847847 class ProductController extends AbstractController
0 commit comments