10000 [book][routing] Correcting mis-information about the controller servi… · dustin10/symfony-docs@92f54a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92f54a7

Browse files
committed
[book][routing] Correcting mis-information about the controller service format per @stof
1 parent 9e60ccf commit 92f54a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

book/routing.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,12 +805,12 @@ Notice that Symfony adds the string ``Controller`` to the class name (``Blog``
805805

806806
.. note::
807807

808-
Symfony also supports two other controller formats. The first, which contains
809-
no colon separators, refers to the controller as a service (see
810-
:doc:`/cookbook/controller/service`). The second is formatted like
811-
``ControllerClassName::methodName``. When Symfony sees this format, it
812-
will try to create a new instance of ``ControllerClassName`` and then
813-
call the ``methodName`` method.
808+
Symfony also supports two other controller formats. The first contains
809+
one colon separator (e.g. ``service_name:indexAction``) and refers to
810+
the controller as a service (see :doc:`/cookbook/controller/service`).
811+
The second is formatted like ``ControllerClassName::methodName``. When
812+
Symfony sees this format, it will try to create a new instance of ``ControllerClassName``
813+
and then call the ``methodName`` method.
814814

815815
Route Parameters and Controller Arguments
816816
-----------------------------------------

0 commit comments

Comments
 (0)
0