PhpRiot
Follow phpriot on Twitter
Sponsored Link
News Archive
PhpRiot Newsletter
Your Email Address:

More information

tl;dr of DI vs SL

Note: This article was originally published at Planet PHP on 8 November 2012.
Planet PHP
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†'