Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1c82fd

Browse files
committed
minor#13777 [Twig] Mention that passing an array of roles/attributes is deprecated (javiereguiluz)
This PR was merged into the 4.4 branch.Discussion----------[Twig] Mention that passing an array of roles/attributes is deprecatedFixes#13773.Commits-------ac875c4 [Twig] Mention that passing an array of roles/attributes is deprecated
2 parentsb60b22e +ac875c4 commite1c82fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎reference/twig_reference.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ Returns ``true`` if the current user has the given role. If several roles are
154154
passed in an array, ``true`` is returned if the user has at least one of
155155
them.
156156

157+
..deprecated::4.4
158+
159+
The feature to pass an array of roles to ``is_granted()`` was deprecated in Symfony 4.4.
160+
157161
Optionally, an object can be passed to be used by the voter. More information
158162
can be found in:ref:`security-template`.
159163

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp