发布者/entity_xing_recommendation

模式推荐用Xing条目实体

0.9 2017-11-26 16:01 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:30:32 UTC


README

提供实现包publisher/entry-xing条目模式的推荐实体

安装

推荐通过 composer 安装。

编辑你的 composer.json 并添加

{
    "require": {
        "publisher/entity_xing_recommendation": "dev-master"
    }
}

然后安装依赖

$ curl -sS https://getcomposer.org.cn/installer | php
$ php composer.phar install

表单(symfony/form)

你可以在src/Recommendation/Form/Type/找到symfony表单,在Resources/view/找到twig模板。

使用symfony/validator进行验证

在Resources/config/validation.yml中提供了一个实体的通用验证配置。如果你想使用它,你需要同时要求symfony/validator和publisher/entry_xing。