4h/generatorbundle
Composer 安装命令:
composer require 4h/generatorbundle
包简介
Code generator bundle, that extend symfony's standard sensio generator bundle.
关键字:
README 文档
README
This is a symfony's sensio generate bundle's extended bundle.
You can generate three things using this generator bundle, it works like sensio generator bundle via command line.
- To create consumer run this command:
php app/console generate:consumer --no-interaction --bundleName=[bundleName] --consumerName=[consumerName]
Example:
consumer --no-interaction --bundleName=QuoteWriteBundle --consumerName=Quote
- To create controller run this command:
php app/console generate:RESTcontroller --no-interaction --controller=bundleName:controllerName --type=type --action=getall --fields="fields"
Example:
php app/console generate:RESTcontroller --no-interaction --controller=QuoteWriteBundle:Quote --type=write --action=putevent --fields="guid:string tenderGuid:string author:string price:float "
- To create document run this command:
php app/console generate:doctrine:document --no-interaction --document=bundleName:documentName --fields="fields" --format=yml
Example:
php app/console generate:doctrine:document --no-interaction --document=QuoteWriteBundle:Quote --fields="guid:string tenderGuid:string author:string price:float " --format=yml
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-16