<?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>Tue, 18 Jun 2013 01:15:39 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Box UK Labs: Dependency Injection and Reflection library]]></title>
      <guid>http://www.phpdeveloper.org/news/15607</guid>
      <link>http://www.phpdeveloper.org/news/15607</link>
      <description><![CDATA[<p>
On the Box UK Labs site there's <a href="http://www.boxuk.com/labs/dependency-injection-and-reflection-library">an interesting dependency injection tool</a> that uses Reflection to get some of the work done. 
</p>
<blockquote>
Dependency injection is a well known concept, and there are currently a plethora of DI containers available from one of the interweb's many pipes. These include Symfony and Crafty, while the Zend Framework also has its own DI container. So why another? One of my personal goals as a developer is to make things so simple, even I can understand them. But most of the DI containers I've come across require too much configuration, and usually via XML - yuck! So how is ours different?
</blockquote>
<p>
The tool, <a href="http://github.com/boxuk/boxuk-di">boxuk-di</a>, makes use of the <a href="http://code.google.com/p/addendum/">Addendum</a> tool to create injectable objects easily accessed via a namespace. You can also use type hinting, scoping and annotations to do special things (like make singleton injection objects). The also mention how primitives are used as well as dispelling some of the misconceptions around reflection and this particular tool.
</p>]]></description>
      <pubDate>Tue, 21 Dec 2010 08:45:24 -0600</pubDate>
    </item>
  </channel>
</rss>
