Make Module Configs Cacheable with the ZF2 Factory Interface
For the longest time, I’ve been using closures in my Zend Framework 2 Modules Module
class. I know they’re not always the best approach, but they’re not necessarily wrong either.
But after reviewing Gary Hockin’s recent talk at PHP Conference UK, I was reminded that outside of APC and OPCache, closures aren’t cacheable.