8000 Add warning about removed services by alexislefebvre · Pull Request #14819 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Add warning about removed services #14819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add warning about removed services
  • Loading branch information
alexislefebvre authored and javiereguiluz committed Jan 15, 2021
commit e6a6c33bf2df1fb1e89cf4084ff2babdaedf7022
6 changes: 6 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,12 @@ container is a service that can be get via the normal container::
// ...
}

.. caution::

The special container ``test.service_container`` doesn't give access
to the services that have been removed. In this case, you'll have
to declare the services you need as public.

.. tip::

If the information you need to check is available from the profiler, use
Expand Down
0