Replace FOSUserBundle controller attributes to Symfony #[Route] attribute
Substitute AbstractFOSRestController Routing attributes by Symfony Routing attribute \#[Route]
move HTTP method to methods:[''] and use #[Route] attribute
#[Rest\Get('/corbeilles')]
#[Rest\Post('/corbeille/restore')]
#[Rest\Delete(path: '/chapitres/{id}', requirements: ['id' => '\d+'])]...
Submitted by anonymous - a year ago