From 99a996c1696bfd57b2f9b24c536dd623fc951c6e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 7 Jul 2015 12:54:36 +0200 Subject: [PATCH] Added caution notes about the deprecation of container scopes --- cookbook/console/console_command.rst | 5 +++++ cookbook/service_container/scopes.rst | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/cookbook/console/console_command.rst b/cookbook/console/console_command.rst index 2bc6e430ee8..9a6d40f76b7 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.