prooph / prooph-service-bus-module
Zend Framework 2 Module for ProophServiceBus
Requires
- php: >=5.4
- prooph/service-bus: ~2.0
- zendframework/zend-loader: ~2.3
- zendframework/zend-modulemanager: ~2.3
- zendframework/zend-mvc: ~2.3
- zendframework/zend-serializer: ~2.3
- zendframework/zend-servicemanager: ~2.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
- zendframework/zend-config: ~2.3
- zendframework/zend-form: ~2.3
- zendframework/zend-log: ~2.3
- zendframework/zend-view: ~2.3
Suggests
- prooph/prooph-event-store-module: Use ProophEventStore within your ZF2 project
This package is auto-updated.
Last update: 2022-02-01 12:36:32 UTC
README
[deprecated] Zend Framework 2 Module for ProophServiceBus. This module only support ProophServiceBus <= 2.x. If you want to use PSB v3+ with ZF2 then checkout proophessor
Installation
You can install ProophServiceBusModule via composer by adding "prooph/prooph-service-bus-module": "~1.0"
as requirement to your composer.json.
Post installation
Enabling it in your application.config.php
file.
<?php return array( 'modules' => array( // ... 'ProophServiceBusModule', ), // ... );
Configuration
Copy the prooph.servicebus.global.php to your
config/autoload
directory and adjust the config to meet your needs.
Retrieve A ProophServiceBus
The command bus can be retrieved from ServiceManager by using the alias prooph.psb.command_bus
$commandBus = $services->get('prooph.psb.command_bus');
The event bus can be retrieved from ServiceManager by using the alias prooph.psb.event_bus
$eventBus = $services->get('prooph.psb.event_bus');