Skip to content

Commit 1fbd278

Browse files
committed
[symfony#2433][symfony#457] Adding more emphasis to the note about controllers as services in the controllers chapter
1 parent 1a79edd commit 1fbd278

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

book/controller.rst

+2
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ itself.
384384
.. note::
385385

386386
You can also define your :doc:`Controllers as Services</cookbook/controller/service>`.
387+
This is optional, but can give you more control over the exact dependencies
388+
that are injected into your controllers.
387389

388390
.. index::
389391
single: Controller; Common tasks

0 commit comments

Comments
 (0)