8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e6f47 commit a590d3dCopy full SHA for a590d3d
testing.rst
@@ -554,6 +554,13 @@ allows fetching both public and all non-removed private services::
554
For a list of services available in your application, use the ``debug:container``
555
command.
556
557
+.. tip::
558
+
559
+ Keep in mind that, if a private service is never used as a dependency of another service in
560
+ your application, it is then removed from the container. So, if you try to access to a private
561
+ service in a test through the special test container and that service isn't used elsewhere
562
+ you'll get a ``ServiceNotFoundException``.
563
564
.. tip::
565
566
The special container that gives access to private services exists only in
0 commit comments