November 2018
Intermediate to advanced
346 pages
8h 12m
English
1. What are the ideal use cases for method injection?
Method injection is great for the following:
2. Why is it important not to save dependencies injected with method injection?
Because the dependency is a parameter of the function or method, every call will supply a new dependency. While saving the dependency before calling other internal methods might seem more straightforward than passing the parameter around as a dependency, such practice will cause ...
Read now
Unlock full access