PHP 클래스 Prooph\ServiceBus\MessageBus

Base class for a message bus implementation
저자: Alexander Miertsch ([email protected])
파일 보기 프로젝트 열기: prooph/service-bus 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$events Prooph\Common\Event\ActionEventEmitter

공개 메소드들

메소드 설명
deactivate ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
dispatch ( mixed $message ) : mixed | void
getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter Retrieve the action event dispatcher
setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void Inject an ActionEventDispatcher instance
utilize ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )

보호된 메소드들

메소드 설명
getMessageName ( mixed $message ) : string
handleException ( Prooph\Common\Event\ActionEvent $actionEvent, Exception $ex )
initialize ( mixed $message, Prooph\Common\Event\ActionEvent $actionEvent )
trigger ( Prooph\Common\Event\ActionEvent $actionEvent )
triggerError ( Prooph\Common\Event\ActionEvent $actionEvent )
triggerFinalize ( Prooph\Common\Event\ActionEvent $actionEvent )

메소드 상세

deactivate() 공개 메소드

public deactivate ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
$plugin Prooph\Common\Event\ActionEventListenerAggregate

dispatch() 추상적인 공개 메소드

abstract public dispatch ( mixed $message ) : mixed | void
$message mixed
리턴 mixed | void depends on the bus type

getActionEventEmitter() 공개 메소드

Lazy-loads a dispatcher if none is registered.
public getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter
리턴 Prooph\Common\Event\ActionEventEmitter

getMessageName() 보호된 메소드

protected getMessageName ( mixed $message ) : string
$message mixed
리턴 string

handleException() 보호된 메소드

protected handleException ( Prooph\Common\Event\ActionEvent $actionEvent, Exception $ex )
$actionEvent Prooph\Common\Event\ActionEvent
$ex Exception

initialize() 보호된 메소드

protected initialize ( mixed $message, Prooph\Common\Event\ActionEvent $actionEvent )
$message mixed
$actionEvent Prooph\Common\Event\ActionEvent

setActionEventEmitter() 공개 메소드

Inject an ActionEventDispatcher instance
public setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void
$actionEventDispatcher Prooph\Common\Event\ActionEventEmitter
리턴 void

trigger() 보호된 메소드

protected trigger ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

triggerError() 보호된 메소드

protected triggerError ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

triggerFinalize() 보호된 메소드

protected triggerFinalize ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

utilize() 공개 메소드

public utilize ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
$plugin Prooph\Common\Event\ActionEventListenerAggregate

프로퍼티 상세

$events 보호되어 있는 프로퍼티

protected ActionEventEmitter,Prooph\Common\Event $events
리턴 Prooph\Common\Event\ActionEventEmitter