Skip to content

Commit 9879ee6

Browse files
committed
Add note about invokable controller services
1 parent 561c6ee commit 9879ee6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cookbook/controller/service.rst

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ the route ``_controller`` value:
136136
:doc:`FrameworkExtraBundle documentation </bundles/SensioFrameworkExtraBundle/annotations/routing>`
137137
for details.
138138

139+
.. versionadded:: 2.6
140+
If your controller service implements the ``__invoke`` method, you can simply refer to the service id
141+
(``acme.hello.controller``).
142+
139143
Alternatives to base Controller Methods
140144
---------------------------------------
141145

0 commit comments

Comments
 (0)