Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43565d9

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 |#5436This 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 parents4ab47cc +99a996c commit43565d9

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)

[8]ページ先頭

©2009-2025 Movatter.jp