Makes Akeneo produce AMQP messages pushed through RabbitMQ.
- Require this package:
$ composer require sylake/akeneo-producer-bundle
- Add bundles to
AppKernel.php
of existing Akeneo application:
protected function registerProjectBundles()
{
return [
new \OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
new \Sylake\AkeneoProducerBundle\SylakeAkeneoProducerBundle(),
];
}
- Configure RabbitMQ default connection:
# app/config/config.yml
old_sound_rabbit_mq:
connections:
default:
host: 'localhost'
port: 5672
user: 'guest'
password: 'guest'
- Configure locales (optional) (default: en_GB, de_DE):
# app/config/config.yml
sylake_akeneo_producer:
locales:
- 'en_GB'
- 'de_DE'
- Perform export via UI or CLI:
$ app/console akeneo:batch:create-job "Sylake - Akeneo Producer" sylake_akeneo_producer export sylake_akeneo_producer
$ app/console akeneo:batch:job sylake_akeneo_producer
You can also export just one product by its SKU by running:
$ app/console sylake:producer:export-product PRODUCT_SKU