Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hota_mazi
· 9y ago · 0 comments
That's not dependency injection, it's dependency passing.
Comments
[–]
dbenhur
9y ago
It's the method of DI known as Constructor Injection.
https://en.wikipedia.org/wiki/Dependency_injection#Construct...