wakeonweb/service-bus-bundle

关于此包的最新版本(0.3.2)没有可用的许可证信息。

安装次数: 13,569

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 2

开放问题: 0

类型:项目

0.3.2 2018-03-26 09:22 UTC

This package is auto-updated.

Last update: 2024-09-08 07:44:56 UTC


README

基于 prooph/service-bus-symfony-bundle,此包为 prooph 服务总线添加了一些额外功能。

安装

将包添加到 composer.json

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

AppKernel.php 中注册包

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

然后,你的 config.yml

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

你可以处理 prooph 总线

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

这是 prooph 的部分,现在