Services and Dependency Injection
摘要
_Dependency Inversion_ is one of the basic principles of good _Object-Oriented Design_. The big enabler is _Dependency Injection_. In this chapter, we will discuss dependency inversion and injection and why it is a fundamental part of Blazer. We will illustrate this by building a _Service_ that encapsulates where the data gets retrieved and stored.