search

Home  >  Q&A  >  body text

The sensio/framework-extra-bundle package has been abandoned

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粉680087550P粉680087550440 days ago757

reply all(2)I'll reply

  • P粉056618053

    P粉0566180532023-10-26 11:42:10

    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

    reply
    0
  • P粉921165181

    P粉9211651812023-10-26 10:17:01

    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

    reply
    0
  • Cancelreply