In this chapter, we will be looking at dependency injection (DI) by config. Config injection is not a completely different method but an extension of both constructor injection and method injection.
It intends to address potential issues with those methods, such as excessive or repeated injected dependencies, without sacrificing the UX of our code.
The following topics will be covered in this chapter:
- Config injection
- Advantages of config injection
- Applying config injection
- Disadvantages of config injection