From 8a96822bd482f3dc86132713d9ba38ffaf82a5d5 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Wed, 4 Apr 2018 19:42:55 +0200 Subject: [PATCH 1/2] [Security] add tip about using custom functions See https://github.com/symfony/symfony/pull/26802 --- security/access_control.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/access_control.rst b/security/access_control.rst index 937944dd198..7182420664e 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -301,6 +301,10 @@ and functions including ``request``, which is the Symfony For a list of the other functions and variables, see :ref:`functions and variables `. +.. tip:: + + 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 `) inside your ``allow_if`` expressions. + Forcing a Channel (http, https) ------------------------------- From 44708ad55689e46a46db26a9e224f34699e3fee3 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 18 Apr 2018 10:19:36 +0200 Subject: [PATCH 2/2] Reword --- security/access_control.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/security/access_control.rst b/security/access_control.rst index 7182420664e..634f0b242aa 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -303,7 +303,12 @@ For a list of the other functions and variables, see .. tip:: - 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 `) inside your ``allow_if`` expressions. + The ``allow_if`` expressions can also contain custom functions registered + with :ref:`expression providers `. + + .. versionadded:: 4.1 + The feature to use custom functions inside ``allow_if`` expressions was + introduced in Symfony 4.1. Forcing a Channel (http, https) ------------------------------- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy