Skip to content

[deprecated] ZF 2 Module for ProophServiceBus. Use:

License

Notifications You must be signed in to change notification settings

prooph/ProophServiceBusModule

Repository files navigation

ProophServiceBusModule

[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

Build Status

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.phpfile.

<?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');

About

[deprecated] ZF 2 Module for ProophServiceBus. Use:

http://prooph.github.io/proophessor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages