Skip to content

Commit 8a96822

Browse files
authored
[Security] add tip about using custom functions
See symfony/symfony#26802
1 parent e192330 commit 8a96822

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

security/access_control.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ and functions including ``request``, which is the Symfony
301301
For a list of the other functions and variables, see
302302
:ref:`functions and variables <security-expression-variables>`.
303303

304+
.. tip::
305+
306+
Since Symfony 4.1 you can also use custom functions (that are registered via providers using the tag ``security.expression_language_provider``; also see :ref:`custom providers <components-expression-language-provider>`) inside your ``allow_if`` expressions.
307+
304308
Forcing a Channel (http, https)
305309
-------------------------------
306310

0 commit comments

Comments
 (0)