Skip to content

Commit 76a19dd

Browse files
shieldoweaverryan
authored andcommitted
small grammar fix
1 parent 30ce181 commit 76a19dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/controller/service.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ inject *only* the exact service(s) that you need directly into the controller.
257257

258258
This does not mean that you cannot extend these controllers from your own
259259
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
261261
the case for controllers that are defined as services. It may be a good
262262
idea to extract common code into a service that's injected rather than
263263
place that code into a base controller that you extend. Both approaches
264264
are valid, exactly how you want to organize your reusable code is up to
265265
you.
266266

267267
.. _`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

0 commit comments

Comments
 (0)