@@ -357,7 +357,7 @@ and save it::
357357 use App\Entity\Product;
358358 use Doctrine\ORM\EntityManagerInterface;
359359 use Symfony\Component\HttpFoundation\Response;
360- use Symfony\Component\Routing\Annotation \Route;
360+ use Symfony\Component\Routing\Attribute \Route;
361361
362362 class ProductController extends AbstractController
363363 {
@@ -439,7 +439,7 @@ Consider the following controller code::
439439
440440 use App\Entity\Product;
441441 use Symfony\Component\HttpFoundation\Response;
442- use Symfony\Component\Routing\Annotation \Route;
442+ use Symfony\Component\Routing\Attribute \Route;
443443 use Symfony\Component\Validator\Validator\ValidatorInterface;
444444 // ...
445445
@@ -503,7 +503,7 @@ be able to go to ``/product/1`` to see your new product::
503503 use App\Entity\Product;
504504 use Doctrine\ORM\EntityManagerInterface;
505505 use Symfony\Component\HttpFoundation\Response;
506- use Symfony\Component\Routing\Annotation \Route;
506+ use Symfony\Component\Routing\Attribute \Route;
507507 // ...
508508
509509 class ProductController extends AbstractController
@@ -536,7 +536,7 @@ and injected by the dependency injection container::
536536 use App\Entity\Product;
537537 use App\Repository\ProductRepository;
538538 use Symfony\Component\HttpFoundation\Response;
539- use Symfony\Component\Routing\Annotation \Route;
539+ use Symfony\Component\Routing\Attribute \Route;
540540 // ...
541541
542542 class ProductController extends AbstractController
@@ -621,7 +621,7 @@ automatically! You can simplify the controller to::
621621 use App\Entity\Product;
622622 use App\Repository\ProductRepository;
623623 use Symfony\Component\HttpFoundation\Response;
624- use Symfony\Component\Routing\Annotation \Route;
624+ use Symfony\Component\Routing\Attribute \Route;
625625 // ...
626626
627627 class ProductController extends AbstractController
@@ -697,7 +697,7 @@ the ``EntityValueResolver`` behavior by using the `MapEntity options`_ ::
697697 use App\Entity\Product;
698698 use Symfony\Bridge\Doctrine\Attribute\MapEntity;
699699 use Symfony\Component\HttpFoundation\Response;
700- use Symfony\Component\Routing\Annotation \Route;
700+ use Symfony\Component\Routing\Attribute \Route;
701701 // ...
702702
703703 class ProductController extends AbstractController
@@ -848,7 +848,7 @@ with any PHP model::
848848 use App\Repository\ProductRepository;
849849 use Doctrine\ORM\EntityManagerInterface;
850850 use Symfony\Component\HttpFoundation\Response;
851- use Symfony\Component\Routing\Annotation \Route;
851+ use Symfony\Component\Routing\Attribute \Route;
852852 // ...
853853
854854 class ProductController extends AbstractController
0 commit comments