File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,12 +257,12 @@ inject *only* the exact service(s) that you need directly into the controller.
257
257
258
258
This does not mean that you cannot extend these controllers from your own
259
259
base controller. The move away from the standard base controller is because
260
- its helper method rely on having the container available which is not
260
+ its helper methods rely on having the container available which is not
261
261
the case for controllers that are defined as services. It may be a good
262
262
idea to extract common code into a service that's injected rather than
263
263
place that code into a base controller that you extend. Both approaches
264
264
are valid, exactly how you want to organize your reusable code is up to
265
265
you.
266
266
267
267
.. _`Controller class source code` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
268
- .. _`base Controller class` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
268
+ .. _`base Controller class` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
You can’t perform that action at this time.
0 commit comments