Dependency Injection

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Dependency Injection

Post by Ollie Saunders »

Can anybody provide resources on Dependency Injection?
In particular I'm looking for a sub 200 word summary of exactly what it is and why it exists.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I think the important things from that are:

- it is a design pattern that is a specific form of Inversion of Control

- it is a pattern in which responsibility for object creation and object linking is removed from the objects themselves and transferred to a factory/registry
(#10850)
Post Reply