The sensio/framework-extra-bundle package has been abandoned
P粉680087550
P粉680087550 2023-10-25 13:36:48
0
2
696

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

P粉680087550
P粉680087550

reply all(2)
P粉056618053

Default Symfony 6.2 --webapp includes sensio/framework-extra-bundle. So by default you will get this warning.

Feel free to delete it:

composer remove sensio/framework-extra-bundle
P粉921165181

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.

composer remove sensio/framework-extra-bundle
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template