skip to Main Content

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


  1. 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.

    composer remove sensio/framework-extra-bundle
    
    Login or Signup to reply.
  2. Default Symfony 6.2 –webapp including sensio/framework-extra-bundle.
    So you will have this warning by default.

    Feel free to remove it:

    composer remove sensio/framework-extra-bundle
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search