Dependency injection allows for substituting implementations of a thing with another implementation. It decouples the service from the dependencies, making it easier to test and switch implementations in the future.
Sort: