wakeonweb / service-bus-bundle
关于此包的最新版本(0.3.2)没有可用的许可证信息。
0.3.2
2018-03-26 09:22 UTC
Requires
- php: >=5.5.9
- prooph/service-bus-symfony-bundle: ~1.0
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 的部分,现在