8000 [book][service_container] Slight clarification · phreaknerd/symfony-docs@ef8841f · GitHub
[go: up one dir, main page]

Skip to content

Commit ef8841f

Browse files
committed
[book][service_container] Slight clarification
1 parent 3f8f524 commit ef8841f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/service_container.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ be specified in YAML, XML or PHP:
138138
for ``prod``).
139139

140140
An instance of the ``Acme\HelloBundle\Mailer`` object is now available via
141-
the service container. Since the container is available in any traditional
142-
Symfony2 controller, we can easily access the new ``my_mailer`` service::
141+
the service container. The container is available in any traditional Symfony2
142+
controller where you can access the services of the container via the ``get()``
143+
shortcut method::
143144

144145
class HelloController extends Controller
145146
{

0 commit comments

Comments
 (0)
0