Last Updated: February 25, 2016
·
1.9K
· aimfeld

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!

1 Response
Add your response

Brilliant!

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside