PHP Class Prooph\ServiceBus\Plugin\MessageProducerPlugin
If the MessageProducerPlugin is attached to a message bus it routes all messages
to the Prooph\ServiceBus\Async\MessageProducer it is initialized with.
Show file
Open project: prooph/service-bus
Class Usage Examples
Public Methods
Method |
Description |
|
__construct ( Prooph\ServiceBus\Async\MessageProducer $messageProducer ) |
|
|
attach ( Prooph\Common\Event\ActionEventEmitter $emitter ) |
|
|
onDispatchInitialize ( Prooph\Common\Event\ActionEvent $event ) |
|
|
Method Details
__construct()
public method
public __construct ( Prooph\ServiceBus\Async\MessageProducer $messageProducer ) |
$messageProducer |
Prooph\ServiceBus\Async\MessageProducer |
|
public attach ( Prooph\Common\Event\ActionEventEmitter $emitter ) |
$emitter |
Prooph\Common\Event\ActionEventEmitter |
|
onDispatchInitialize()
public method
public onDispatchInitialize ( Prooph\Common\Event\ActionEvent $event ) |
$event |
Prooph\Common\Event\ActionEvent |
|