<?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, 25 May 2013 05:32:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Marcelo Gornstein's Blog: Dependency injection with Xml and Yaml in the Ding container]]></title>
      <guid>http://www.phpdeveloper.org/news/17584</guid>
      <link>http://www.phpdeveloper.org/news/17584</link>
      <description><![CDATA[<p>
In <a href="http://marcelog.github.com/articles/ding_xml_yaml_di_dependency_injection.html">this new post</a> to his blog today <i>Marcelo Gornstein</i> looks at doing some dependency injection in a simple application via XML and YAML configurations and the <a href="http://marcelog.github.com/Ding">Ding</a> dependency injection container.
</p>
<blockquote>
In this <a href="http://marcelog.github.com/articles/ding_component_bean_annotations_di_dependency_injection.html">past article</a> I've discussed the dependency injection features when using annotations. This time, we'll see how to use the xml and yaml drivers to do the same (setter and constructor injection). If you don't know how to configure the xml and yaml drivers, please start by reading <a href="http://marcelog.github.com/articles/ding_example_xml_yaml_annotations_bean_drivers_tutorial_how_to.html">this</a>.
</blockquote>
<p>
He describes the different injection methods available with the container - setter injection, constructor injection and method injection. Example configuration content is included - both the XML and YAML versions.
</p>]]></description>
      <pubDate>Fri, 24 Feb 2012 11:37:04 -0600</pubDate>
    </item>
  </channel>
</rss>
