Skip to content

Commit 0b046b3

Browse files
committed
[Routing] Add a note for refering invokable controllers
1 parent c72dde0 commit 0b046b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,12 @@ and method: ``AppBundle\Controller\BlogController::showAction``. But if you
531531
follow some simple conventions, the logical name is more concise and allows
532532
more flexibility.
533533

534+
.. tip::
535+
536+
To refer to an action that is implemented as the ``__invoke()`` method of a controller class,
537+
you do not have to pass the method name, but can just use the fully qualified class name (e.g.
538+
``AppBundle\Controller\BlogController``).
539+
534540
.. note::
535541

536542
In addition to using the logical name or the fully-qualified class name,

0 commit comments

Comments
 (0)