We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c980d commit ac6b008Copy full SHA for ac6b008
cookbook/controller/service.rst
@@ -76,6 +76,13 @@ Then you can define it as a service as follows:
76
'AppBundle\Controller\HelloController'
77
));
78
79
+.. caution::
80
+
81
+ If you are managing your routes with PHP annotation, you may need to add an
82
+ ``@Route`` annotation to the controller-class which specifies its service
83
+ ID. If you don't, the system may try to construct your controller without
84
+ any arguments. See the `FrameworkExtraBundle documentation`_ for details.
85
86
Referring to the Service
87
------------------------
88
0 commit comments