Skip to content

Commit

Permalink
feature #3966 [Cookbook][Controller] Add note about invokable control…
Browse files Browse the repository at this point in the history
…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 3f92d5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cookbook/controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------

Expand Down

0 comments on commit 3f92d5f

Please sign in to comment.