Skip to content

Commit 669a9f0

Browse files
javiereguiluzxabbuh
authored andcommitted
Removed a wrong note about controllers as services
1 parent d82c7e6 commit 669a9f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controller/service.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ defined above with the id ``app.hello_controller``::
104104

105105
.. note::
106106

107-
You cannot drop the ``Action`` part of the method name when using this
108-
syntax.
107+
Make sure the method name in your route (e.g. ``indexAction``) matches the
108+
method name exactly. Unlike the traditional ``Bundle:Controller:method``
109+
notation, the ``Action`` suffix is not automatically added for you.
109110

110111
You can also route to the service by using the same notation when defining
111112
the route ``_controller`` value:

0 commit comments

Comments
 (0)