kix/generator-bundle
最新稳定版本:0.1.0
Composer 安装命令:
composer require kix/generator-bundle
包简介
A rethinking of generator bundle for Symfony
README 文档
README
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.
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.
Here the ControllerGenerator dispatches a ControllerGenerated event
which then triggers TwigViewGenerator and
UnitTestGenerator
to generate tests and Twig templates.
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.
Currently, the implementation is lacking some things:
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.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2014-12-11