Often times object hydration isn’t a simple matter, and requires a more nuanced, more sophisticated solution than the out-of-the-box options, available in Zend Framework, provide. Today we showcase one such solution - the Aggregate Hydrator.
<h2 id="synopsis">Synopsis</h2> <p>Zend Framework 2 comes packed with an assortment of new features and functionality and greatly streamlines how common scenarios, such as interacting with datasources and application configuration and caching are implemented.</p> <p>Whether it&rsquo;s <a href="http://www.masterzendframework.com/tutorial/zf2-html5-form-field-introduction" title="Zend Framework 2 – The New HTML5 Form Fields">the new HTML5 form elements</a> and view helpers, the new implementation of <a href="http://framework.zend.com/manual/2.1/en/modules/zend.http.html">Zend\Http</a>, the Service Manager, the Event Manager or that <a href="http://www.masterzendframework.com/tutorial/zend-framework-2-modules-the-applications-heart">Modules are now first-class citizens</a> - you can&rsquo;t help but see that it&rsquo;s bursting at the seams.</p>
Today I take you through the Zend Framework 2 EventManager. We&rsquo;ll look at the EventManager key patterns, how it works and step through with some hands on code.