I'm a little confused regarding the "proper" ZF2 pattern for object
instantiation. I had come to the conclusion that all objects should be
instantiated with factories. But looking at the Album tutorial I can see
that the Album object and the AlbumForm object are directly instantiated in
the AlbumController::addAction(). So, what is the ZF2 pattern for
instantiating objects? Is there a rule when factories should be used or not
used?

With regards
Björn

Reply via email to