From ac875c4cfabe736198bc85d88e9778b00796a46e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 8 Jun 2020 11:53:07 +0200 Subject: [PATCH] [Twig] Mention that passing an array of roles/attributes is deprecated --- reference/twig_reference.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index d241d92674d..84e52b0cd35 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -154,6 +154,10 @@ Returns ``true`` if the current user has the given role. If several roles are passed in an array, ``true`` is returned if the user has at least one of them. +.. deprecated:: 4.4 + + The feature to pass an array of roles to ``is_granted()`` was deprecated in Symfony 4.4. + Optionally, an object can be passed to be used by the voter. More information can be found in :ref:`security-template`.