Description
Deprecated public services and turns them into private
Syntax
If your application tries to get that service directly from the
container ($container->get('foo'))
you’ll see the following error:
Since foo/bar 1.2: Accessing the "foo" service directly from the container
is deprecated, use dependency injection instead.