File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ For more information on routing, see :doc:`/routing`.
117117 single: Controller; Base controller class
118118
119119.. _anchor-name :
120- :ref: `The Base Controller Classes & Services <the-base-controller-class-services >`
120+ :ref:`The Base Controller Classes & Services <the-base-controller-class-services>`
121121
122122The Base Controller Classes & Services
123123--------------------------------------
@@ -136,8 +136,9 @@ with a service object that can render Twig templates, another that can
136136log messages and many more.
137137
138138On the other hand, the ``AbstractController `` prevents you from accessing the
139- **service container **. This forces you to write a code more robust by
140- forcing you to explicitly define your dependencies.
139+ **service container **. When you need an external dependency, this forces you to
140+ write a code more robust as you have to explicitly define your dependencies by
141+ using :doc: `the controller as a service </controller/service >`.
141142
142143Add the ``use `` statement atop the ``Controller `` class and then modify
143144``LuckyController `` to extend it::
You can’t perform that action at this time.
0 commit comments