From 9879ee6601b97d3a473592a26079ccf4a819c4d3 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Sat, 21 Jun 2014 12:59:31 -0400 Subject: [PATCH] Add note about invokable controller services --- cookbook/controller/service.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbook/controller/service.rst b/cookbook/controller/service.rst index 602b14aead3..da39e672401 100644 --- a/cookbook/controller/service.rst +++ b/cookbook/controller/service.rst @@ -136,6 +136,10 @@ the route ``_controller`` value: :doc:`FrameworkExtraBundle documentation ` 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 ---------------------------------------