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'm wondering how to do this since I removed the package and my routes no longer work.
what to do? Thanks
Default Symfony 6.2 --webapp includes sensio/framework-extra-bundle. So by default you will get this warning.
Feel free to delete it:
Routing using annotations or properties is now fully integrated into the Symfony namespace.
You may
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
in your controller.Use
Symfony\Component\Routing\Annotation\Route
instead.You can then delete the FrameworkExtraBundle with complete working routing.