Skip to content

[Routing] fix: remove quotes on routes #20443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ arbitrary matching logic:
# config/routes.yaml
contact:
path: /contact
controller: 'App\Controller\DefaultController::contact'
controller: App\Controller\DefaultController::contact
condition: "context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
# expressions can also include configuration parameters:
# condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
Expand All @@ -311,7 +311,7 @@ arbitrary matching logic:

post_show:
path: /posts/{id}
controller: 'App\Controller\DefaultController::showPost'
controller: App\Controller\DefaultController::showPost
# expressions can retrieve route parameter values using the "params" variable
condition: "params['id'] < 1000"

Expand Down
Loading