snowio / 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-11-23 18:02:03 UTC
README
This bundle provides a new connector called Snowio Connector that allow us to export all the data from just on job, zip them and send to snowio endpoint.
- Full Job
- Export (products, variant groups, categories, attributes, attribute options, families and attribute groups)
- Partial Job
- Export (categories, attributes, attribute options, families and attribute groups)
Both of them have as final steps: Generate metadata, Zip files, send to Snowio using Guzzle.
Installation
You can install this bundle via composer.
composer require snowio/akeneo-bundle
Configure threshold check step
Snowio\Bundle\CsvConnectorBundle\Step\CheckThresholdsStep
has an injectable export threshold, and checks this against the read count of the previous step.
Define the class as a parameter:
parameters:
...
snowio_connector.step.check_thresholds.class: Snowio\Bundle\CsvConnectorBundle\Step\CheckThresholdsStep
Create services for this class:
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%'
You need to inject the thresholds (bottom parameter) - these should be referenced by variables in parameters.yml
.
Add your services after the steps you want to check, e.g.:
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
```