This bundle aims to provide generate:fieldtype command to generate eZ Platform FieldType bundle structure.
Add SmileEzFieldTypeGeneratorBundle by running this command from the terminal at the root of your eZPlatform project:
composer require smile/ez-fieldtypegenerator-bundle
To start using the bundle, register the bundle in your application's kernel class:
// 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
As generate:bundle, you should enter a valid namepsace.
New required entry is le FieldType name.
A bundle is generated automatically with all code structure to manage new eZ Platform field type