when I wanted to upgrade symfony from 6.1 to 6.2, I saw this message:
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
I want to know how to do it because I deleted the package and I have routes that no longer work.
How to do ? thank you
2
Answers
Using annotations or attributes for routes are now fully integrated in the Symfony namespace.
You are probably using
use SensioBundleFrameworkExtraBundleConfigurationRoute;
in your controllers.Use
SymfonyComponentRoutingAnnotationRoute
instead.You can then remove the FrameworkExtraBundle with fully working routes.
Default Symfony 6.2 –webapp including sensio/framework-extra-bundle.
So you will have this warning by default.
Feel free to remove it: