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 814b43e

Browse filesBrowse files
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 ![image](https://cloud.githubusercontent.com/assets/1047696/25716808/b9ab518e-3100-11e7-8b59-21351b5c14ca.png) after ![image](https://cloud.githubusercontent.com/assets/1047696/25716833/d08065fc-3100-11e7-9462-987b2c6eaa26.png) Commits ------- 94371d0 [Routing] Expose request in route conditions, if needed and possible
2 parents f392282 + 94371d0 commit 814b43e
Copy full SHA for 814b43e

File tree

0 file changed

+0
-0
lines changed
Filter options

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
    0 (0)
    Morty Proxy This is a proxified and sanitized view of the page, visit original site.