Code generation module and API for ZF2