Skip to content

Commit 99a996c

Browse files
committed
Added caution notes about the deprecation of container scopes
1 parent 2c1328e commit 99a996c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cookbook/console/console_command.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ for details.
8282
Getting Services from the Service Container
8383
-------------------------------------------
8484

85+
.. caution::
86+
87+
The "container scopes" concept explained in this section has been deprecated
88+
in Symfony 2.8 and it will be removed in Symfony 3.0.
89+
8590
By using :class:`Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand`
8691
as the base class for the command (instead of the more basic
8792
:class:`Symfony\\Component\\Console\\Command\\Command`), you have access to the

cookbook/service_container/scopes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
How to Work with Scopes
55
=======================
66

7+
.. caution::
8+
9+
The "container scopes" concept explained in this article has been deprecated
10+
in Symfony 2.8 and it will be removed in Symfony 3.0.
11+
712
This article is all about scopes, a somewhat advanced topic related to the
813
:doc:`/book/service_container`. If you've ever gotten an error mentioning
914
"scopes" when creating services, then this article is for you.

0 commit comments

Comments
 (0)