Y
Hacker News
new
|
ask
|
show
|
jobs
by
dbenhur
3294 days ago
It's the method of DI known as Constructor Injection.
https://en.wikipedia.org/wiki/Dependency_injection#Construct...