Skip to content

Commit 9c29f08

Browse files
committed
minor #8669 Removed a wrong note about controllers as services (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #8669). Discussion ---------- Removed a wrong note about controllers as services This is probably wrong. We're discussing about that in symfony/symfony#24976. Commits ------- 669a9f0 Removed a wrong note about controllers as services
2 parents 8112785 + 669a9f0 commit 9c29f08

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)