Skip to content

Commit 1a30691

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,11 @@ 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+
For referring to the ``__invoke`` method of a controller, no need for
537+
passing the method name, just use its fully-qualified namespace.
538+
534539
.. note::
535540

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

0 commit comments

Comments
 (0)