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 ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With