Skip to content

Commit 5317f98

Browse files
zer0unojaviereguiluz
authored andcommitted
Update service_container.rst
if a public service should *not* be fetched by ``$container->get()``, how should it be fetched? The example shows the use of ``$container->get()``, so I think there was a typo and it should be changed from "public" => "private"
1 parent 1049771 commit 5317f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ This is mostly useful when you want to fetch services lazily::
860860

861861
As a best practice, you should only create *private* services, which will happen
862862
automatically. And also, you should *not* use the ``$container->get()`` method to
863-
fetch public services.
863+
fetch private services.
864864

865865
But, if you *do* need to make a service public, override the ``public`` setting:
866866

0 commit comments

Comments
 (0)