Skip to content

Commit 3362875

Browse files
committed
Minor reword
1 parent 70e2e45 commit 3362875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ These are used for rendering templates, sending emails, querying the database an
178178
any other "work" you can think of.
179179

180180
If you need a service in a controller, type-hint an argument with its class
181-
(or interface) name. Symfony will automatically pass you the service you need.
182-
Make sure your :doc:`controller is registered as a service </controller/service>`::
181+
(or interface) name and Symfony will inject it automatically. This requires
182+
your :doc:`controller to be registered as a service </controller/service>`::
183183

184184
use Psr\Log\LoggerInterface;
185185
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)