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
CodePudding user response:
Using annotations or attributes for routes are now fully integrated in the Symfony namespace.
You are probably using use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
in your controllers.
Use Symfony\Component\Routing\Annotation\Route
instead.
You can then remove the FrameworkExtraBundle with fully working routes.
composer remove sensio/framework-extra-bundle