Skip to main content
Image for post: Zf2 initializers, listeners and factory references

Zf2 initializers, listeners and factory references

Almost always in a web application, you need to set some features before starting to do something in your controller. I'm having a lot of difficulties about keeping the code clean and simple in Zend. Let's see how initializers, listeners and factory pattern implementation can help us. I've gathered some very good resources. I'll check out all solutions and I'll see what kind of solution can be more simple, clean and helpful.

Initializers

 Factory

Listeners

Share this post

This website and/or any sub domains use cookies to understand how you to improve your experience.