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

Commit0dfffff

Browse files
yanickjweaverryan
yanickj
authored andcommitted
Update PHP example to include synthetic attribute.
1 parent4ef1a71 commit0dfffff

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)

[8]ページ先頭

©2009-2025 Movatter.jp