Previous code examples were based on ZF1 and did not work
Merge branch 'hotfix/982'

Close #982
Merge pull request #983 from zionsg/patch-1

Zend\Code\Generator: Previous code examples were based on ZF1 and did not work
[#983] Use imports

- to shorten code blocks and make them more readable.
Merge branch 'hotfix/983' into develop

Forward port #983