From c22dc202295691bbdf2168af3ddaab8a26258935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 16 Mar 2022 18:03:42 +0100 Subject: [PATCH] Documentation for env() function in route condition --- routing.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routing.rst b/routing.rst index 9f7a1fca581..74e3a7fee02 100644 --- a/routing.rst +++ b/routing.rst @@ -414,6 +414,11 @@ and can use any of these variables created by Symfony: The :ref:`Symfony Request ` object that represents the current request. +Additionnal functions are provided: + +``env(string $name)`` + Read a variable using :doc:`Environment Variable Processors ` + Behind the scenes, expressions are compiled down to raw PHP. Because of this, using the ``condition`` key causes no extra overhead beyond the time it takes for the underlying PHP to execute.