Zend Framework Quick Bites
About This Show
Get quick bites of Zend Framework – the leading development framework for PHP. Find out what's new, what's going on, and how to use it, in less time than it takes to drink a coffee — every Thursday.
Most Recent Episode
Episode 36 - A Rapid Intro to Delegator Factories
In this episode, come get a quick introduction to a very powerful feature in Zend ServiceManager, called Delegator Factories.
Delegator Factories (https://ocramius.github.io/blog/zend-framework-2-delegator-factories-explained/) are:
pretty much, a wrapper around a real factory: it allows us to either replace the actual service with a "delegate" or interact with an object produced by a factory before it is returned by the Zend\ServiceManager.
They’re a very powerful feature that Matthew Weier O’Phinney put me onto while I’ve been writing the new book Zend Expressive Essentials (http://www.masterzendframework.com/zend-expressive-essentials/). I was stand-offish at first, but have been blown away by the power and flexibility that they offer.
If you’re keen to find out how to create powerful and flexible middleware pipelines, then grab a cup of your favourite beverage, have a listen to the episode, tweet me at @zfmastery (https://twitter.com/zfmastery) with any questions, and check out the links below.
Tweet me at @zfmastery (https://twitter.com/zfmastery)
Zend Expressive Essentials Book & Course (http://www.masterzendframework.com/zend-expressive-essentials/)
Zend Framework 2 Delegator Factories Explained (https://ocramius.github.io/blog/zend-framework-2-delegator-factories-explained/)
Delegator Factories - Official Documentation (https://docs.zendframework.com/zend-expressive/features/container/delegator-factories/)