Skip to content

Commit 1a7717a

Browse files
authored
Recommend using root controller attribute in route definition
Instead of `defaults._controller`
1 parent 5436c4f commit 1a7717a

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
@@ -110,7 +110,7 @@ which is a common practice when following the `ADR pattern`_
110110
# config/routes.yaml
111111
hello:
112112
path: /hello/{name}
113-
defaults: { _controller: app.hello_controller }
113+
controller: app.hello_controller
114114
115115
.. code-block:: xml
116116

0 commit comments

Comments
 (0)