akeneo / piivo-connector
此包已被废弃,不再维护。未建议替代包。
扩展API以连接PiiVO DAM
v1.1.0
2018-01-19 08:49 UTC
Requires
- akeneo/extended-attribute-type: ^2.0.2
- akeneo/pim-community-dev: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2020-12-12 07:34:08 UTC
README
此扩展旨在提供新的API功能,以将PiiVO DAM与Akeneo PIM连接。我们试图创建此扩展以添加更多功能,但请注意,我们不保证其稳定性。
要求
PiiVO Connector | Akeneo PIM 社区版 |
---|---|
v1.1.* | v2.* |
v1.0.* | v1.7.* |
安装
您可以使用composer安装此包(请参阅要求部分)
php composer.phar require akeneo/piivo-connector:1.1.*
并在app/AppKernel.php
文件中的registerBundles()
方法中启用该包
$bundles = [ // ... new Piivo\Bundle\ConnectorBundle\PiivoConnectorBundle(), new Pim\Bundle\ExtendedAttributeTypeBundle\PimExtendedAttributeTypeBundle(), ]
如果您的安装已设置好,请勿忘记在生产环境中清理缓存。
在app/config/routing.yml
中添加路由
piivo_api:
resource: "@PiivoConnectorBundle/Resources/config/routing.yml"
prefix: /api
Elasticsearch索引
如ExtendedAttributeTypeBundle的README中所述,您还必须注册新的Elasticsearch配置文件;在app/config/pim_parameters.yml
中,编辑elasticsearch_index_configuration_files
参数,并添加以下值
elasticsearch_index_configuration_files: - '%kernel.root_dir%/../vendor/akeneo/pim-community-dev/src/Pim/Bundle/CatalogBundle/Resources/elasticsearch/index_configuration.yml' - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration.yml'
对于企业版,还有一个文件需要注册
elasticsearch_index_configuration_files: - '%kernel.root_dir%/../vendor/akeneo/pim-community-dev/src/Pim/Bundle/CatalogBundle/Resources/elasticsearch/index_configuration.yml' - '%kernel.root_dir%/../vendor/akeneo/pim-enterprise-dev/src/PimEnterprise/Bundle/WorkflowBundle/Resources/elasticsearch/index_configuration.yml' - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration.yml' - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration_ee.yml'
如果是全新安装,您可以继续进行标准安装。
另一方面,从现有的PIM安装,您将必须重新创建您的Elasticsearch索引
php bin/console cache:clear --no-warmup --env=prod
php bin/console akeneo:elasticsearch:reset-indexes --env=prod
php bin/console pim:product-model:index --all --env=prod
php bin/console pim:product:index --all --env=prod
文档
一些API使用示例可以在此找到:https://api.akeneo.com/ 我们保持API主要规则用于新路由和过滤器。
贡献
如果您想为此开源项目做出贡献,感谢您阅读并签署以下贡献协议