-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit 814b43e
committed
feature #22636 [Routing] Expose request in route conditions, if needed and possible (ro0NL)
This PR was squashed before being merged into the 2.7 branch (closes #22636).
Discussion
----------
[Routing] Expose request in route conditions, if needed and possible
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #16968, #22635
| License | MIT
| Doc PR | -
given
```
/**
* @route("/", name="homepage", condition="request.isXmlHttpRequest()")
*/
```
```
$ app/console route:match /
```
before

after

Commits
-------
94371d0 [Routing] Expose request in route conditions, if needed and possibleFile tree
Expand file treeCollapse file tree
0 file changed
+0
-0
lines changedFilter options
Expand file treeCollapse file tree
0 file changed
+0
-0
lines changed
0 commit comments