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.