File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -86,17 +86,15 @@ Then you can define it as a service as follows:
86
86
Referring to the Service
87
87
------------------------
88
88
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 ::
93
93
94
94
$this->forward('AppBundle:Hello:index', array('name' => $name));
95
95
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 ``::
100
98
101
99
$this->forward('app.hello_controller:indexAction', array('name' => $name));
102
100
You can’t perform that action at this time.
0 commit comments