Skip to content

Commit 5264bf8

Browse files
committed
fix(wording): fix on injection name & code style
1 parent d9a1e38 commit 5264bf8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

service_container/injection_types.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ But, it is useful to know that this can be done with the service container,
249249
especially if you are working with code that is out of your control, such
250250
as in a third party library, which uses public properties for its dependencies.
251251

252-
Static Injection
253-
----------------
252+
Immutable Injection
253+
-------------------
254254

255-
Another possible injection in to use a method which return `static`,
255+
Another possible injection in to use a method which return ``static``,
256256
this approach allow you to make a service immutable::
257257

258258
// ...
@@ -347,9 +347,9 @@ so, what are the advantages?
347347
The disadvantages are:
348348

349349
* As the ``@return static`` docblock is required by the container to
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.
350+
understand that the method return a new object,
351+
you can found that adding docblock for a single method isn't adapted or
352+
link your code to the container.
353353

354354
* As this approach force the container to create a new object
355355
once the method is called, you can found hard to debug and test your code.

0 commit comments

Comments
 (0)