▲ | jcmontx 3 days ago | |
The secret is currying. Replace your DI for currying and you'll start to see somewhat similar patterns | ||
▲ | Smaug123 2 days ago | parent [-] | |
By the way, I consider https://www.bartoszsypytkowski.com/dealing-with-complex-depe... to be the canonically correct way to do DI when you want to inject more than like two dependencies. |