Permalink
Browse files

feature #3966 [Cookbook][Controller] Add note about invokable control…

…ler services (kbond)

This PR was merged into the master branch.

Discussion
----------

[Cookbook][Controller] Add note about invokable controller services

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#11193)
| Applies to    | 2.6+
| Fixed tickets | -

Commits
-------

9879ee6 Add note about invokable controller services
  • Loading branch information...
weaverryan committed Aug 16, 2014
2 parents 9d7c999 + 9879ee6 commit 3f92d5f5e77d63c9328ead5403ea1b3d23d62ceb
Showing with 4 additions and 0 deletions.
  1. +4 −0 cookbook/controller/service.rst
@@ -136,6 +136,10 @@ the route ``_controller`` value:
:doc:`FrameworkExtraBundle documentation </bundles/SensioFrameworkExtraBundle/annotations/routing>`
for details.
.. versionadded:: 2.6
If your controller service implements the ``__invoke`` method, you can simply refer to the service id
(``acme.hello.controller``).
Alternatives to base Controller Methods
---------------------------------------

0 comments on commit 3f92d5f

Please sign in to comment.