我看到“Package
sensio/framework-extra-bundle
is abandoned, you should avoid using it. Use Symfony instead.”
但我在我的控制器中使用它:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
#[Security("is_granted('ROLE_USER') and user === choosenUser")]
#[Route('/movement/user/{id}', name: 'app_movement_user')]
public function.......
我现在必须使用什么来保持安全? 谢谢