Skip to content

Commit 14f89d7

Browse files
javiereguiluzGuilhemN
authored andcommitted
Minor reword
1 parent 3d25905 commit 14f89d7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

controller/service.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,15 @@ Then you can define it as a service as follows:
8686
Referring to the Service
8787
------------------------
8888

89-
If the fully-qualified class name (FQCN) of your controller is also the id of
90-
your service then you can refer to your controller using the usual notations.
91-
For example, to forward to the ``indexAction()`` method of the service
92-
defined above with the id ``AppBundle\Controller\HelloController``::
89+
If the service id is the fully-qualified class name (FQCN) of your controller,
90+
you can keep using the usual notation. For example, to forward to the
91+
``indexAction()`` method of the above ``AppBundle\Controller\HelloController``
92+
service::
9393

9494
$this->forward('AppBundle:Hello:index', array('name' => $name));
9595

96-
To refer to a controller that's defined as a service whose ID is not your
97-
controller fully-qualified class name (FQCN), use the single colon (:)
98-
notation. For example, to forward to the ``indexAction()`` method of a service
99-
defined with the id ``app.hello_controller``::
96+
Otherwise, use the single colon (``:``) notation. For example, to forward to the
97+
``indexAction()`` method of a service with the id ``app.hello_controller``::
10098

10199
$this->forward('app.hello_controller:indexAction', array('name' => $name));
102100

0 commit comments

Comments
 (0)