No more need to write Zend\ServiceManager factory code!
Are you tired of writing tons of factory code (closures) for the ServiceManager in your Zend Framework 2 application? Are outdated factory methods causing bugs? This can all be avoided by using the ZF2 ZendDiCompiler module!
ZendDiCompiler uses auto-generated factory code for dependency-injection. It saves you a lot of work, since there's no need anymore for writing Zend\ServiceManager factory closures and keeping them up-to-date manually.
ZendDiCompiler scans your code using Zend\Di and creates factory methods automatically. If the factory methods are outdated, ZendDiCompiler updates them in the background. Therefore, you develop faster, avoid bugs due to outdated factory methods, and experience great performance in production!
Written by Adrian Imfeld
Related protips
1 Response
Brilliant!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#