Previous code examples were based on ZF1 and did not work
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'

Close #983