wakeonweb/service-bus-bundle

There is no license information available for the latest version (0.3.2) of this package.

0.3.2 2018-03-26 09:22 UTC

This package is auto-updated.

Last update: 2022-08-08 02:57:48 UTC


README

Based on prooph/service-bus-symfony-bundle, this bundle add some extras to prooph service bus.

Install

Add packages to composer.json

    "require": {
        "wakeonweb/service-bus-bundle": "^0.2.1",
        ..
    }

Register bundles in AppKernel.php

    new Prooph\Bundle\ServiceBus\ProophServiceBusBundle(),
    new WakeOnWeb\ServiceBusBundle\App\Bundle\WakeonwebServiceBusBundle()

Then, your config.yml.

prooph_service_bus:
  command_buses:
    synchronous_command_bus:
      router:
        type: 'prooph_service_bus.command_bus_router'

You can deal with prooph bus:

$bus = $container->get('prooph_service_bus.synchronous_command_bus');
$bus->dispatch(Acme\Foo\Command\RenameUser::withData('uuid here ...', 'john', 'doe'));

This was the prooph part, now: