smile/ez-fieldtypegenerator-bundle

此包已被弃用且不再维护。作者建议使用 edgar/ez-fieldtypeextra-bundle 包。

eZ Platform 6.x 的字段类型生成器

安装数: 1,988

依赖者: 0

建议者: 0

安全: 0

星标: 4

关注者: 9

分支: 1

开放问题: 0

类型:ezplatform-bundle

1.0.9 2017-03-21 08:23 UTC

This package is auto-updated.

Last update: 2022-02-01 13:02:06 UTC


README

SensioLabsInsight

此包旨在提供 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 字段类型。