From 0b046b35989ae735ace66962912b7e7a51ceeba0 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Fri, 2 Sep 2016 19:27:19 +0200 Subject: [PATCH] =?UTF-8?q?[Routing]=C2=A0Add=20a=20note=20for=20refering?= =?UTF-8?q?=20invokable=20controllers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routing.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing.rst b/routing.rst index b6440dacc5d..cc52902ed64 100644 --- a/routing.rst +++ b/routing.rst @@ -531,6 +531,12 @@ and method: ``AppBundle\Controller\BlogController::showAction``. But if you follow some simple conventions, the logical name is more concise and allows more flexibility. +.. tip:: + + To refer to an action that is implemented as the ``__invoke()`` method of a controller class, + you do not have to pass the method name, but can just use the fully qualified class name (e.g. + ``AppBundle\Controller\BlogController``). + .. note:: In addition to using the logical name or the fully-qualified class name,