Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package sensio/framework-extra-bundle is 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 want to know how to do it because I deleted the package and I have routes that no longer work.

How to do ?

like image 495
Camel4488 Avatar asked Sep 13 '25 06:09

Camel4488


1 Answers

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

You may be using this bundle for more annotations such as IsGranted or ParamConverter, there are also available in symfony 6 (list of all attributes).

Example with the new #[MapEntity] to replace ParamConverter.

like image 166
Dylan Kas Avatar answered Sep 14 '25 20:09

Dylan Kas