Skip to content

Commit 36baee1

Browse files
adrienbraultweaverryan
authored andcommitted
Add warning about synchronized service with private services
1 parent 10021a5 commit 36baee1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbook/service_container/scopes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ your code. This should also be taken into account when declaring your service:
209209
->setSynthetic(true)
210210
->setSynchronized(true);
211211
212+
.. caution::
213+
214+
The service using the synchronized service will need to be public in order have its
215+
setter called when the scope changes.
216+
212217
.. _changing-service-scope:
213218

214219
Changing the Scope of your Service

0 commit comments

Comments
 (0)