Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c22dc20

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

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.