Skip to content

Commit

Permalink
Merge branch '7.1' into 7.2
Browse files Browse the repository at this point in the history
* 7.1:
  fix: remove quotes on routes
  • Loading branch information
OskarStark committed Dec 7, 2024
2 parents daa6ed1 + 7643423 commit c7babc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,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 @@ -307,7 +307,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

0 comments on commit c7babc8

Please sign in to comment.