Commit 2df2303
committed
minor #16610 [Routing] doc for env() function in route condition (GromNaN)
This PR was merged into the 5.4 branch.
Discussion
----------
[Routing] doc for env() function in route condition
Fix #13247 for symfony/symfony#35747
Very useful to match host based on env var.
```yaml
blog_list:
path: /blog
# the controller value has the format 'controller_class::method_name'
controller: App\Controller\BlogController::list
condition: "context.getHost() == env('APP_MAIN_HOST')"
```
Commits
-------
c22dc20 Documentation for env() function in route condition1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
| |||
0 commit comments