8000 Merge pull request #375 from oyerli/master · phreaknerd/symfony-docs@3f8f524 · GitHub
[go: up one dir, main page]

Skip to 8000 content

Commit 3f8f524

Browse files
committed
Merge pull request symfony#375 from oyerli/master
Removed unnecessary tip in service_container.rst
2 parents 38a0fa6 + ffc82b8 commit 3f8f524

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

book/service_container.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,6 @@ Symfony2 controller, we can easily access the new ``my_mailer`` service::
153153
}
154154
}
155155

156-
.. tip::
157-
158-
When using a traditional controller, there's an even shorter way to
159-
access a service from the container. This is exactly equivalent to the
160-
above method, but with less keystrokes::
161-
162-
$mailer = $this->get('my_mailer');
163-
164156
When we ask for the ``my_mailer`` service from the container, the container
165157
constructs the object and returns it. This is another major advantage of
166158
using the service container. Namely, a service is *never* constructed until

0 commit comments

Comments
 (0)
0