From de5f02a72f19ff73037bcbac7ccf6d4345686163 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Fri, 18 Oct 2013 14:55:12 -0700 Subject: [PATCH] Add warning about synchronized service with private services --- cookbook/service_container/scopes.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/service_container/scopes.rst b/cookbook/service_container/scopes.rst index f305a97837d..f84a51a8704 100644 --- a/cookbook/service_container/scopes.rst +++ b/cookbook/service_container/scopes.rst @@ -216,6 +216,11 @@ your code. This should also be taken into account when declaring your service: ->setSynthetic(true) ->setSynchronized(true); +.. caution:: + + The service using the synchronized service will need to be public in order have its + setter called when the scope changes. + .. _changing-service-scope: Changing the Scope of your Service