2017 © Pedro Peláez
 

library prooph-service-bus-module

Zend Framework 2 Module for ProophServiceBus

image

prooph/prooph-service-bus-module

Zend Framework 2 Module for ProophServiceBus

  • Sunday, May 3, 2015
  • by prooph
  • Repository
  • 2 Watchers
  • 5 Stars
  • 149 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

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, (*1)

Build Status, (*2)

Installation

You can install ProophServiceBusModule via composer by adding "prooph/prooph-service-bus-module": "~1.0" as requirement to your composer.json., (*3)

Post installation

Enabling it in your application.config.phpfile., (*4)

<?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., (*5)

Retrieve A ProophServiceBus

The command bus can be retrieved from ServiceManager by using the alias prooph.psb.command_bus, (*6)

$commandBus = $services->get('prooph.psb.command_bus');

The event bus can be retrieved from ServiceManager by using the alias prooph.psb.event_bus, (*7)

$eventBus = $services->get('prooph.psb.event_bus');

The Versions