Episode 36 - A Rapid Intro to Delegator Factories

Share:

Listens: 0

Zend Framework Quick Bites

Technology


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 ZendServiceManager. 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. Questions/Comments/Suggestions Tweet me at @zfmastery (https://twitter.com/zfmastery) Links 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/)