ZF2-67: Make Code Generator component more extensible

Issue Type: Improvement Created: 2011-09-09T11:48:23.000+0000 Last Updated: 2012-10-08T20:10:00.000+0000 Status: Closed Fix version(s): Reporter: Johannes Schmitt (johannesms) Assignee: Ralph Schindler (ralph) Tags: - Zend\Code\Generator

Related issues: Attachments:


Right now, there is a generate() method on each code element (PhpClass, PhpMember, etc.) which makes it hard to customize the code that is generated by these methods. Instead of this generate() method, I would propose to use the visitor pattern instead and move that code to a visitor which then traverses the several code elements and generates the code.


Posted by Ralph Schindler (ralph) on 2012-10-08T20:10:00.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.