Swipe to navigate through the chapters of this book
In the previous chapter, I introduced services and explained how they are distributed using dependency injection. When using dependency injection, the objects that are used to resolve dependencies are created by service providers, known more commonly as providers. In this chapter, I explain how providers work, describe the different types of provider available, and demonstrate how providers can be created in different parts of the application to change the way that services behave. Table 20-1 puts providers in context.
Please log in to get access to this content
To get access to this content you need the following product:
- Using Service Providers
- Sequence number
- Chapter number
- Chapter 20