2017 © Pedro Peláez
 

library generator-bundle

A rethinking of generator bundle for Symfony

image

kix/generator-bundle

A rethinking of generator bundle for Symfony

  • Wednesday, December 24, 2014
  • by kix
  • Repository
  • 0 Watchers
  • 7 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Code generators

This is a collection of Symfony 2 code generators based on nikic's PHP-Parser. These generators can be way more flexible than the ones provided by SensioGeneratorBundle due to their event-based nature., (*1)

First, all generators utilize an event dispatcher to notify others of the changes. This allows automatic tests/specs generation once a base generator has fired., (*2)

Here the ControllerGenerator dispatches a ControllerGenerated event which then triggers TwigViewGenerator and UnitTestGenerator to generate tests and Twig templates., (*3)

Second, an AST processor dispatcher is built in. You can hook up your own ProcessorInterface implementations that would modify the syntax tree before it's dumped into a file., (*4)

Currently, the implementation is lacking some things:, (*5)

  • ~~PHPParser does not yet allow dumping comment blocks, so there's no way to generate annotations yet.~~
  • The ControllerGenerator is mostly just proof-of-concept.
  • AST processors have not really been tested yet.
  • Everything needs way more flexibility.

The Versions

24/12 2014

dev-master

9999999-dev

A rethinking of generator bundle for Symfony

  Sources   Download

BSD

The Requires

 

The Development Requires

by Stepan Anchugov

11/12 2014

0.1.0

0.1.0.0

A rethinking of generator bundle for Symfony

  Sources   Download

BSD

The Requires

 

The Development Requires

by Stepan Anchugov