tl;dr of DI vs SL
Note: This article was originally published at Planet PHP
on 8 November 2012.
Chris Hartjes has a nice writeup on dependency injection containers versus service locators. Here's a short way to tell which one you're using: a€oIf your class has a dependency on a container, you're using Service Locator, not Dependency Injection.a€¯ If a€¦ Continue reading a†'


