8000 Documentation for env() function in route condition · symfony/symfony-docs@c22dc20 · GitHub
[go: up one dir, main page]

Skip to content

Commit c22dc20

Browse files
authored
Documentation for env() function in route condition
1 parent 7d667bc commit c22dc20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ and can use any of these variables created by Symfony:
414414
The :ref:`Symfony Request <component-http-foundation-request>` object that
415415
represents the current request.
416416

417+
Additionnal functions are provided:
418+
419+
``env(string $name)``
420+
Read a variable using :doc:`Environment Variable Processors <configuration/env_var_processors>`
421+
417422
Behind the scenes, expressions are compiled down to raw PHP. Because of this,
418423
using the ``condition`` key causes no extra overhead beyond the time it takes
419424
for the underlying PHP to execute.

0 commit comments

Comments
 (0)
0