diff --git a/security/expressions.rst b/security/expressions.rst index 9e26717afb4..29779e37b84 100644 --- a/security/expressions.rst +++ b/security/expressions.rst @@ -21,6 +21,7 @@ and ``#[IsGranted()]`` attribute also accept an namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; + use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\ExpressionLanguage\Expression; use Symfony\Component\HttpFoundation\Response;