Skip to content

Commit 119c3df

Browse files
committed
minor #20443 [Routing] fix: remove quotes on routes (alexislefebvre)
This PR was merged into the 6.4 branch. Discussion ---------- [Routing] fix: remove quotes on routes On this section https://symfony.com/doc/6.4/routing.html#matching-http-methods and the next: `controller:` appears without and with quotes: > ![image](https://github.com/user-attachments/assets/03d7d938-eb61-42a1-8078-ba978e0683c7) I removed the quotes for consistency. Commits ------- a984be5 fix: remove quotes on routes
2 parents bf79db1 + a984be5 commit 119c3df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ arbitrary matching logic:
302302
# config/routes.yaml
303303
contact:
304304
path: /contact
305-
controller: 'App\Controller\DefaultController::contact'
305+
controller: App\Controller\DefaultController::contact
306306
condition: "context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
307307
# expressions can also include configuration parameters:
308308
# condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
@@ -311,7 +311,7 @@ arbitrary matching logic:
311311
312312
post_show:
313313
path: /posts/{id}
314-
controller: 'App\Controller\DefaultController::showPost'
314+
controller: App\Controller\DefaultController::showPost
315315
# expressions can retrieve route parameter values using the "params" variable
316316
condition: "params['id'] < 1000"
317317

0 commit comments

Comments
 (0)