雪豹 / akeneo-bundle
v1.8.3
2018-10-10 14:36 UTC
Requires
- akeneo/pim-community-dev: 1.7.*
- guzzlehttp/guzzle: ^6.1
- phpspec/phpspec: ^3.2
- symfony/config: ^2.7.2
- symfony/dependency-injection: ^2.7.2
- symfony/http-kernel: ^2.7.2
This package is auto-updated.
Last update: 2024-09-23 17:38:54 UTC
README
此捆绑包提供一个新的连接器称为Snowio连接器,允许我们导出单个作业的所有数据,将它们压缩并发送到Snowio端点。
- 完整作业
- 导出(产品、变体组、类别、属性、属性选项、家族和属性组)
- 部分作业
- 导出(类别、属性、属性选项、家族和属性组)
两者都具有最终步骤:生成元数据、压缩文件、使用Guzzle发送到Snowio。
安装
您可以通过composer安装此捆绑包。
composer require snowio/akeneo-bundle
配置阈值检查步骤
Snowio\Bundle\CsvConnectorBundle\Step\CheckThresholdsStep
有一个可注入的导出阈值,并检查它与之前步骤的读取计数。
将类定义为参数
parameters:
...
snowio_connector.step.check_thresholds.class: Snowio\Bundle\CsvConnectorBundle\Step\CheckThresholdsStep
为该类创建服务
services:
...
snowio_connector.step.check_threshold.products:
class: '%snowio_connector.step.check_thresholds.class%'
arguments:
- 'check_thresholds'
- '@event_dispatcher'
- '@akeneo_batch.job_repository'
- '%minimum_products_export%'
snowio_connector.step.check_threshold.attributes:
class: '%snowio_connector.step.check_thresholds.class%'
arguments:
- 'check_thresholds'
- '@event_dispatcher'
- '@akeneo_batch.job_repository'
- '%minimum_attributes_export%'
您需要注入阈值(底部参数) - 这些应通过 parameters.yml
中的变量引用。
在您想检查的步骤之后添加您的服务,例如。
services:
...
snowio_connector.job.full_export:
class: '%pim_connector.job.simple_job.class%'
arguments:
- '%snowio_connector.job_name.full_export%'
- '@event_dispatcher'
- '@akeneo_batch.job_repository'
-
- '@snowio_connector.step.csv_product.export'
- '@snowio_connector.step.check_threshold.products'
- '@snowio_connector.step.csv_variant_group.export'
- '@snowio_connector.step.csv_category.export'
- '@snowio_connector.step.csv_attribute.export'
- '@snowio_connector.step.check_threshold.attributes'
- '@snowio_connector.step.csv_attribute_option.export'
- '@snowio_connector.step.csv_family.export'
- '@snowio_connector.step.csv_attribute_group.export'
- '@snowio_connector.step.metadata'
- '@snowio_connector.step.archive'
- '@snowio_connector.step.media_export'
- '@snowio_connector.step.post'
Version ^1.4 introduce new parameters in `app/config/parameters.yml` which need to be added on deployment.
```
media_export_directory: media_export/
media_export_host: false
media_export_user: false
minimum_products_export: 0
minimum_attributes_export: 0
```