5 ms·
> Any kind of injection of dependencies should be done via an explicit method/constructor parameter. These kinds of statement make me question whether you have
by _pmf_ 7y ago
> Any kind of injection of dependencies should be done via an explicit method/constructor parameter.
These kinds of statement make me question whether you have ever worked with any framework that is not under your control.
- scarface74 7y agoYes, and sensible frameworks use constructor injection -- see ASP.Net Core.