Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9879ee6

Browse files
committed
Add note about invokable controller services
1 parent561c6ee commit9879ee6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎cookbook/controller/service.rst‎

Lines changed: 4 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp