From fc4a554f2ffc66cffffd5cc1cc1a5aa5828f3951 Mon Sep 17 00:00:00 2001 From: venu Date: Sat, 13 Apr 2013 16:48:25 +0530 Subject: [PATCH 1/2] Added limitations in 'Managing Common Dependencies with Parent Services' with a caution --- components/dependency_injection/parentservices.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/dependency_injection/parentservices.rst b/components/dependency_injection/parentservices.rst index 024e28b3b83..e8809cd3b0a 100644 --- a/components/dependency_injection/parentservices.rst +++ b/components/dependency_injection/parentservices.rst @@ -273,6 +273,10 @@ when the child services are instantiated. is that omitting the ``parent`` config key will mean that the ``calls`` defined on the ``mail_manager`` service will not be executed when the child services are instantiated. + +.. caution:: + + ``scope``, ``abstract``, ``abstract`` attributes are always taken from the child. The parent service is abstract as it should not be directly retrieved from the container or passed into another service. It exists merely as a "template" that From 41363dbe2b64522024f5e26c13fb20d84aff432a Mon Sep 17 00:00:00 2001 From: venu Date: Tue, 16 Apr 2013 10:50:52 +0530 Subject: [PATCH 2/2] Typo fixed --- components/dependency_injection/parentservices.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dependency_injection/parentservices.rst b/components/dependency_injection/parentservices.rst index e8809cd3b0a..3dde0ea53d1 100644 --- a/components/dependency_injection/parentservices.rst +++ b/components/dependency_injection/parentservices.rst @@ -276,7 +276,7 @@ when the child services are instantiated. .. caution:: - ``scope``, ``abstract``, ``abstract`` attributes are always taken from the child. + ``scope``, ``abstract``, ``tags`` attributes are always taken from the child. The parent service is abstract as it should not be directly retrieved from the container or passed into another service. It exists merely as a "template" that