8000 Merge branch '5.0' · symfony/symfony-docs@5b6e28c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b6e28c

Browse files
committed
Merge branch '5.0'
* 5.0: Fix documentation for a controllers with __invoke function in php routing
2 parents e968043 + b6933e2 commit 5b6e28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ the ``BlogController``:
136136
->controller([BlogController::class, 'list'])
137137
138138
// if the action is implemented as the __invoke() method of the
139-
// controller class, you can skip the ', method_name]' part:
140-
// ->controller([BlogController::class])
139+
// controller class, you can skip the 'method_name' part:
140+
// ->controller(BlogController::class)
141141
;
142142
};
143143

0 commit comments

Comments
 (0)
0