Skip to content

Commit 97ee696

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Recommend using root `controller` attribute in route definition
2 parents cd0e925 + 4a9b0a3 commit 97ee696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ which is a common practice when following the `ADR pattern`_
143143
# config/routes.yaml
144144
hello:
145145
path: /hello/{name}
146-
defaults: { _controller: app.hello_controller }
146+
controller: app.hello_controller
147147
148148
.. code-block:: xml
149149

0 commit comments

Comments
 (0)