8000 minor #9552 [Security] add tip about using custom functions (dmaicher… · symfony/symfony-docs@0b3df49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b3df49

Browse files
committed
minor #9552 [Security] add tip about using custom functions (dmaicher, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- [Security] add tip about using custom functions Since 4.1 its possible to use custom functions inside security `allow_if` expressions. See symfony/symfony#26660 Commits ------- 44708ad Reword 8a96822 [Security] add tip about using custom functions
2 parents 5fe07dc + 44708ad commit 0b3df49

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

security/access_control.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,15 @@ 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+
The ``allow_if`` expressions can also contain custom functions registered
307+
with :ref:`expression providers <components-expression-language-provider>`.
308+
309+
.. versionadded:: 4.1
310+
The feature to use custom functions inside ``allow_if`` expressions was
311+
introduced in Symfony 4.1.
312+
304313
Forcing a Channel (http, https)
305314
-------------------------------
306315

0 commit comments

Comments
 (0)
0