In this second tutorial of the series, I show how the combined functionality provided by dependency injection and a service locator can be quite helpful in the construction of testable object graphs.


Read the full article here: Dependency Injection and Service Locators in PHP

For more discussion go here: Blog Article Discussion