akeneo / custom-entity-bundle
v4.0.0
2020-09-08 06:47 UTC
Requires
- akeneo/pim-community-dev: ^4.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14.0
- phpspec/phpspec: ^5.0
- dev-master
- v4.0.0
- 3.0.x-dev
- v3.0.2
- v3.0.1
- v3.0.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2-beta
- v2.0.0-beta
- 1.10.x-dev
- v1.10.9
- v1.10.8
- v1.10.7
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- 1.9.x-dev
- v1.9.1
- v1.9.0
- v1.9.0-RC1
- v1.8.0
- 1.7.x-dev
- v1.7.0
- 1.6.x-dev
- v1.6.0
- v1.6.0-RC2
- v1.6-RC1
- v1.6.0-alpha1
- 1.5.x-dev
- v1.5.0-RC1
- v1.4.0
- v1.3.0
- v1.3.0-RC1
- v1.3.0-alpha1
- v1.2.0
- v1.1.1
- v1.1.0
- 1.0.0
- dev-fix-import-with-translations
- dev-github-137
This package is not auto-updated.
Last update: 2022-02-01 12:32:33 UTC
README
简化 PIM 参考数据和相关视图的创建。
更多信息请参阅 http://docs.akeneo.com/
要求
CustomEntityBundle | Akeneo PIM 社区版 |
---|---|
v4.0.* | v4.0.* |
v3.0.* | v3.0.* |
v2.4.* | v2.3.* |
v2.3.* | v2.2.* |
v2.2.* | v2.1.* |
v2.1.* | v2.1.* |
v2.0.* | v2.0.* |
v1.10.* | v1.7.* |
安装
您可以使用 composer 安装此包(请参阅要求部分)
php composer.phar require "akeneo-labs/custom-entity-bundle":"4.0.*"
然后在您的 config/routes/routes.yml 的 末尾 添加以下行
pim_customentity: prefix: /reference-data resource: "@PimCustomEntityBundle/Resources/config/routing.yml"
并在 config/bundles.php 文件中启用该包
return [ // ... Pim\Bundle\CustomEntityBundle\PimCustomEntityBundle::class => ['all' => true] ];
如果您的安装已经设置,您必须运行以下命令以添加快速导出作业
php bin/console akeneo:batch:create-job "Akeneo Mass Edit Connector" "csv_reference_data_quick_export" "quick_export" "csv_reference_data_quick_export" '{"delimiter": ";", "enclosure": "\"", "withHeader": true, "filePath": "/tmp/reference_data_quick_export.csv"}'
文档
参考数据文档可在 PIM 文档 中找到。
详细资料可在 包文档 中找到。
运行测试
单元测试
$ composer install $ vendor/bin/phpspec run
代码风格
$ composer install $ vendor/bin/php-cs-fixer fix -v --diff --config .php_cs.php
PHPUnit
- 安装带有 CustomEntityBundle 的 Akeneo PIM
- 将
Tests/Resources/phpunit.xml
复制到项目根目录 - 将
Tests/Resources/.env.test
复制到项目根目录,并相应地编辑您的配置 - 将
Tests/Resources/bundles.php
或Tests/Resources/bundles_ee.php
(根据您的 PIM 版本)内容复制到 config/bundles.php 文件中
然后
$ php bin/console cache:warmup --env=test If you're on EE Edition : $ php bin/console pim:installer:db --env=test --catalog vendor/akeneo/pim-enterprise-dev/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal Else : $ php bin/console pim:installer:db --env=test --catalog vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/InstallerBundle/Resources/fixtures/minimal $ vendor/bin/phpunit
贡献
如果您想为此开源项目做出贡献,感谢您阅读并签署以下 贡献协议