Produces messages consumed by Sylake/SyliusConsumerBundle.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec/Connector
src
tests/DependencyInjection
.gitignore
.travis.yml
LICENSE
README.md
composer.json
humbug.json.dist
phpspec.yml.dist
phpunit.xml.dist

README.md

AkeneoProducerBundle

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