Skip to content

Commit 0dfffff

Browse files
yanickjweaverryan
yanickj
authored andcommitted
Update PHP example to include synthetic attribute.
1 parent 4ef1a71 commit 0dfffff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookbook/service_container/scopes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ marked as ``synchronized``:
169169
);
170170
$definition->setScope('client');
171171
$definition->setSynchronized(true);
172+
$definition->setSynthetic(true);
172173
$container->setDefinition('client_configuration', $definition);
173174
174175
Now, if you inject this service using setter injection, there are no drawbacks

0 commit comments

Comments
 (0)