Ever wanted to dynamically expand the functionality of an object which you retrieve from your dependency injection container, based on different needs, yet without creating messy, hard to maintain configurations? Then you&rsquo;re going to want to know about a powerful new technique - called Delegator Factories.
Want an easy way to configure caching in ZF2 applications? Today&rsquo;s shows you how with a little-known option StorageCacheAbstractServiceFactory.
In this tutorial, we see how to use abstract factories to configure the ServiceManager in Zend Framework 2. It&rsquo;s one of the simplest approaches available.