BRIEFS logo BRIEFS

Episode 36 - A Rapid Intro to Delegator Factories

08/15/2017 , 2m, 56s

In this episode, come get a quick introduction to a very powerful feature in Zend ServiceManager, called Delegator Factories.

Delegator Factories 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. 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 with any questions, and check out the links below.

Questions/Comments/Suggestions

Tweet me at @zfmastery

Links