openwines / references-bundle
OpenWines的酒行业参考数据管理器 - Akeneo PIM Bundle
1.0.0
2017-04-27 06:58 UTC
Requires
- akeneo-labs/custom-entity-bundle: 1.10.*
- akeneo/pim-community-dev: v1.7.*
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
This package is not auto-updated.
Last update: 2024-09-10 23:25:16 UTC
README
为OpenWines提供的酒行业参考数据管理器。
包含
- 品种
- 地区
- 产区
基于Akeneo PIM 1.7 Community Edition的Akeneo PIM Bundle
要求
先决条件
编辑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