Closed
Description
Ocasionally we're getting reports like symfony/symfony#12588 or symfony/symfony#2586.
I think the Advanced DI chapter should emphasise more the fact that a private service is a hint for the container, and the rule is not enforced when retrieving the service from container. The doc currently says "Now that the service is private, you cannot call: $container->get('foo')", but few paragraphs before there's a note mentioning that a service is only inlined if it's referenced by a single service.
Partly related to #4228