smile / ez-fieldtypegenerator-bundle
1.0.9
2017-03-21 08:23 UTC
Requires
- php: ~5.6|~7.0
- ezsystems/ezpublish-kernel: ~6.7
README
此包旨在提供 generate:fieldtype 命令以生成 eZ Platform 字段类型包结构。
安装
使用 composer 获取包
在 eZPlatform 项目的根目录下从终端运行此命令以添加 SmileEzFieldTypeGeneratorBundle
composer require smile/ez-fieldtypegenerator-bundle
启用包
要开始使用包,请在您的应用程序内核类中注册该包
// ezpublish/EzPublishKernel.php public function registerBundles() { $bundles = array( // ... new Smile\EzFieldTypeGeneratorBundle\SmileEzFieldTypeGeneratorBundle(), // ... ); }
如何使用新命令
php app/console generate:fieldtype php app/console assets:install --symlink web php app/console assetic:dump
与 generate:bundle 类似,您应该输入一个有效的命名空间。
新需要的输入是字段的名称。
将自动生成一个包含所有代码结构的包,用于管理新的 eZ Platform 字段类型。