Fabien Potencier writes about the Dependency Injection
With a series of interesting posts Fabien Potencier explains what is a dependency injection and how to use it. Actually as the author says almost everyone of us has used it without even know it’s called ‘dependency injection’. Follow these two links to understand this technique by a given collection of very good examples: