@@ -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
@@ -620,7 +620,7 @@ automatically! You can simplify the controller to::
620620 use App\Entity\Product;
621621 use App\Repository\ProductRepository;
622622 use Symfony\Component\HttpFoundation\Response;
623- use Symfony\Component\Routing\Annotation \Route;
623+ use Symfony\Component\Routing\Attribute \Route;
624624 // ...
625625
626626 class ProductController extends AbstractController
@@ -696,7 +696,7 @@ the ``EntityValueResolver`` behavior by using the `MapEntity options`_ ::
696696 use App\Entity\Product;
697697 use Symfony\Bridge\Doctrine\Attribute\MapEntity;
698698 use Symfony\Component\HttpFoundation\Response;
699- use Symfony\Component\Routing\Annotation \Route;
699+ use Symfony\Component\Routing\Attribute \Route;
700700 // ...
701701
702702 class ProductController extends AbstractController
@@ -832,7 +832,7 @@ with any PHP model::
832832 use App\Repository\ProductRepository;
833833 use Doctrine\ORM\EntityManagerInterface;
834834 use Symfony\Component\HttpFoundation\Response;
835- use Symfony\Component\Routing\Annotation \Route;
835+ use Symfony\Component\Routing\Attribute \Route;
836836 // ...
837837
838838 class ProductController extends AbstractController
0 commit comments