File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ then extending it and overriding the constructor becomes problematic.
103
103
Immutable-setter Injection
104
104
--------------------------
105
105
106
- Another possible injection in to use a method which return `` static ``,
107
- this approach allow you to make a service immutable::
106
+ Another possible injection in to use a method which return a separate instance
107
+ by cloning the original service, this approach allow you to make a service immutable::
108
108
109
109
// ...
110
110
@@ -179,7 +179,7 @@ which allow the container to return the newly created service:
179
179
for the container to be capable of registering the method.
180
180
181
181
This approach is useful if you need to configure your service according to your needs,
182
- so, what are the advantages?
182
+ so, here's the advantages of immutable-setters:
183
183
184
184
* Immutable setters works with optional dependencies, this way, if you don't need
185
185
a dependency, the setter don't need to be called.
You can’t perform that action at this time.
0 commit comments