wakeonweb / service-bus-bundle
Installs: 13 569
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- prooph/service-bus-symfony-bundle: ~1.0
This package is auto-updated.
Last update: 2024-11-08 07:59:51 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: