openwines/references-bundle

OpenWines的酒行业参考数据管理器 - Akeneo PIM Bundle

安装: 8

依赖: 0

建议者: 0

安全: 0

星星: 2

关注者: 7

分支: 0

开放问题: 2

类型:symfony-bundle

1.0.0 2017-04-27 06:58 UTC

This package is not auto-updated.

Last update: 2024-09-10 23:25:16 UTC


README

OpenWines提供的酒行业参考数据管理器。

包含

  • 品种
  • 地区
  • 产区

OpenWines references data

基于Akeneo PIM 1.7 Community Edition的Akeneo PIM Bundle

要求

先决条件

下载Akeneo PIM 1.7

编辑app/config/parameters.yml并使用minimal数据集

# /app/config/parameters.yml
parameters:
    installer_data: PimInstallerBundle:minimal

然后按照以下步骤安装Akeneo PIM:

安装

现在您的Akeneo PIM实例已经启动并运行,请使用composer安装此bundle(见要求部分)

php composer.phar require openwines/references-bundle "dev-master"

app/AppKernel.php文件中现有的registerBundles()方法中启用此bundle

protected function registerProjectBundles()
{
    return [
        // your app bundles should be registered here
        new Pim\Bundle\CustomEntityBundle\PimCustomEntityBundle(),
        new OpenWines\ReferencesBundle\OpenWinesReferencesBundle(),
    ];

在您的app/config/routing.yml的末尾添加以下行

    pim_customentity:
        prefix: /reference-data
        resource: "@PimCustomEntityBundle/Resources/config/routing.yml"

更新您的数据库模式

php app/console doctrine:schema:update -e=prod --force

安装固定数据

mysql -u root  openwines < vendor/openwines/references-bundle/Resources/data/fixtures/openwines_ref_region.sql

待办事项

请参阅TODO.md

许可证

  • OSL-V3.0