<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 23:22:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP Thinktank Blog: Dependency injection in PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/5410</guid>
      <link>http://www.phpdeveloper.org/news/5410</link>
      <description><![CDATA[<p>
On the PHP Thinktank Blog, there's <a href="http://phpthinktank.com/archives/51-Dependency-injection-in-PHP5.html">a new post</a> that deals with dependency injection in PHP5 - a sort of tutorial on the topic, demonstrating with a simple example.
</p>
<quote>
<i>
<p>
Several months ago I started using Spring Framework. That is how I faced the dependency injection. As my programming skills mostly originated from web development with PHP, I found out that I've missed a great technique, which is as usually common in Java land, but rare in PHP. I ended up with a research of dependency injection libraries for PHP.
</p>
<p>
However, all these solutions made you to define your dependencies within the code of your application, and were quite minimalistic. That made my mind - I started working on <a href="http://garden.clawphp.org/">Garden</a> - the dependency injection container for PHP5, which would use XML definitions with syntax as similar as possible to the Spring.
</p>
</i>
</quote>
<p>
The <a href="http://phpthinktank.com/archives/51-Dependency-injection-in-PHP5.html">example provided</a> performs an injection to "put a collar on a dog", including the complete implementation, down to the output of the var_dump. He hints at some much <a href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html">more complex</a> functionality than just this, though - potential for growth of the <a href="http://garden.clawphp.org/">Garden library</a>.
</p>]]></description>
      <pubDate>Mon, 22 May 2006 05:48:59 -0500</pubDate>
    </item>
  </channel>
</rss>
