I saw "Package sensio/framework-extra-bundle
is abandoned, you should avoid using it. Use Symfony instead."
but I use it in my Controller :
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
#[Security("is_granted('ROLE_USER') and user === choosenUser")]
#[Route('/movement/user/{id}', name: 'app_movement_user')]
public function.......
What I have to use now to keep Security ? Thanks