2017 © Pedro Peláez
 

sylius-plugin sylius-consumer-plugin

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

image

sylake/sylius-consumer-plugin

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

  • Friday, November 10, 2017
  • by Arminek
  • Repository
  • 10 Watchers
  • 11 Stars
  • 1,249 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

This Sylius consumer plugin is deprecated & supports Akeneo 1.7 only

SyliusConsumerPlugin

Installation

  1. Require this package:
$ composer require sylake/sylius-consumer-plugin
  1. Add bundles to AppKernel.php of existing Sylius application:
public function registerBundles()
{
    $bundles = [
        new \SimpleBus\SymfonyBridge\SimpleBusCommandBusBundle(),
        new \SimpleBus\SymfonyBridge\SimpleBusEventBusBundle(),
        new \OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
        new \SyliusLabs\RabbitMqSimpleBusBundle\RabbitMqSimpleBusBundle(),
        new \Sylake\SyliusConsumerPlugin\SylakeSyliusConsumerPlugin(),
    ];

    return array_merge(parent::registerBundles(), $bundles);
}
  1. Configure RabbitMQ default connection:
# app/config/config.yml

old_sound_rabbit_mq:
    connections:
        default:
            host: 'localhost'
            port: 5672
            user: 'guest'
            password: 'guest'

Usage

  1. Run the following command to listen for messages and consume them:
$ bin/console rabbitmq:consumer sylake

Extending product projector

Adding a product postprocessor allows to change product before saving it., (*1)

  1. Create a class which implements Sylake\SyliusConsumerPlugin\Projector\Product\ProductPostprocessorInterface., (*2)

  2. Define it as a service with tag sylake_sylius_consumer.projector.product.postprocessor., (*3)

  3. :tada:, (*4)

The Versions

04/09 2017
23/05 2017

v1.0.0-alpha.3

1.0.0.0-alpha3

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/05 2017

v1.0.0-alpha.2

1.0.0.0-alpha2

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/05 2017

v1.0.0-alpha.1

1.0.0.0-alpha1

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2017

v1.0.0-alpha

1.0.0.0-alpha

Integrates Sylius with message processing for sylake/akeneo-producer-bundle.

  Sources   Download

MIT

The Requires

 

The Development Requires