File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -324,8 +324,8 @@ which allow the container to return the newly created service:
324324
325325 .. note ::
326326
327- This type of injection require that you add a ``@return static `` docblock in order
328- for the container to understand to be capable of registering the method.
327+ This type of injection requires that you add a ``@return static `` docblock in order
328+ for the container to be capable of registering the method.
329329
330330This approach is useful if you need to configure your service according to your needs,
331331so, what are the advantages?
@@ -347,8 +347,9 @@ so, what are the advantages?
347347The disadvantages are:
348348
349349* As the ``@return static `` docblock is required by the container to
350- understand that the method return a cloned object, you can
351- found that adding docblock for a single method isn't adapted.
350+ understand that the method return a new object, you can
351+ found that adding docblock for a single method isn't adapted or
352+ can tie your code to the container.
352353
353354* As this approach force the container to create a new object
354355 once the method is called, you can found hard to debug and test your code.
You can’t perform that action at this time.
0 commit comments