Skip to content

Commit 43565d9

Browse files
committed
minor #5498 [WIP] Added caution notes about the deprecation of container scopes (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- [WIP] Added caution notes about the deprecation of container scopes | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.8+ | Fixed tickets | #5436 This is a first proposal related to scopes deprecation. Questions: * Should we expand the "caution notes" to explain why we did that and the alternatives provided? * Should we rewrite the `cookbook/service_container/scopes.rst` article to explain the new scopes + shared flag and add a note about the old scopes which were available in the past Symfony versions? Commits ------- 99a996c Added caution notes about the deprecation of container scopes
2 parents 4ab47cc + 99a996c commit 43565d9

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy