urbanaralabs/akeneo-producer-bundle

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 18

Type:akeneo-connector

v1.0.0 2018-04-04 09:05 UTC

README

Makes Akeneo produce AMQP messages pushed through RabbitMQ.

Installation

  1. Require this package:
$ composer require sylake/akeneo-producer-bundle
  1. Add bundles to AppKernel.php of existing Akeneo application:
protected function registerProjectBundles()
{
    return [
        new \OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
        new \Sylake\AkeneoProducerBundle\SylakeAkeneoProducerBundle(),
    ];
}
  1. Configure RabbitMQ default connection:
# app/config/config.yml

old_sound_rabbit_mq:
    connections:
        default:
            host: 'localhost'
            port: 5672
            user: 'guest'
            password: 'guest'
  1. Configure locales (optional) (default: en_GB, de_DE):
# app/config/config.yml

sylake_akeneo_producer:
    locales:
        - 'en_GB'
        - 'de_DE'

Usage

  1. 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