Chapter 7

    Services

    Services are a way to allow objects that perform specific, commonly used functions to be reused throughout your application. Mail, logging, and authorization are all examples of services.

    The Dependency Injection (DI) container provides an elegant and loosely coupled way to make various services available globally in your application.