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.
- Initialize a database adapter using table gateway (samsonasik)
- Interface injection with initializers
- Access services using different solutions