8000 refactor(injection_types): refactoring on disadvantages · symfony/symfony-docs@8c81e56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c81e56

Browse files
committed
refactor(injection_types): refactoring on disadvantages
1 parent 577760f commit 8c81e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/injection_types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ The disadvantages are:
204204
you can found that adding docblock for a single method isn't adapted or
205205
link your code to the container.
206206

207-
* As this approach force the container to create a new object
208-
once the method is called, you can found hard to debug and test your code.
207+
* Unless the service is declared lazy, it is incompatible with services
208+
that reference each other in what are called circular loops
209209

210210
Setter Injection
211211
----------------

0 commit comments

Comments
 (0)
0