diff --git a/cookbook/console/console_command.rst b/cookbook/console/console_command.rst index 184c51e541d..7e23a4762a4 100644 --- a/cookbook/console/console_command.rst +++ b/cookbook/console/console_command.rst @@ -82,6 +82,11 @@ for details. Getting Services from the Service Container ------------------------------------------- +.. caution:: + + The "container scopes" concept explained in this section has been deprecated + in Symfony 2.8 and it will be removed in Symfony 3.0. + By using :class:`Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand` as the base class for the command (instead of the more basic :class:`Symfony\\Component\\Console\\Command\\Command`), you have access to the diff --git a/cookbook/service_container/scopes.rst b/cookbook/service_container/scopes.rst index bac6281a3e0..13d35e4cc1e 100644 --- a/cookbook/service_container/scopes.rst +++ b/cookbook/service_container/scopes.rst @@ -4,6 +4,11 @@ How to Work with Scopes ======================= +.. caution:: + + The "container scopes" concept explained in this article has been deprecated + in Symfony 2.8 and it will be removed in Symfony 3.0. + This article is all about scopes, a somewhat advanced topic related to the :doc:`/book/service_container`. If you've ever gotten an error mentioning "scopes" when creating services, then this article is for you.