PHP 클래스 Prooph\EventStore\Metadata\MetadataEnricherPlugin

상속: implements Prooph\EventStore\Plugin\Plugin
파일 보기 프로젝트 열기: prooph/event-store 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Prooph\EventStore\Metadata\MetadataEnricher $metadataEnricher )
onEventStoreAppendToStream ( Prooph\Common\Event\ActionEvent $appendToStreamEvent ) Add event metadata on event store appendToStream.
onEventStoreCreateStream ( Prooph\Common\Event\ActionEvent $createEvent ) Add event metadata on event store createStream.
setUp ( EventStore $eventStore )

비공개 메소드들

메소드 설명
handleRecordedEvents ( Iterator $events ) : Iterator This method takes domain events as argument which are going to be added to the event stream and add the metadata via the MetadataEnricher.

메소드 상세

__construct() 공개 메소드

public __construct ( Prooph\EventStore\Metadata\MetadataEnricher $metadataEnricher )
$metadataEnricher Prooph\EventStore\Metadata\MetadataEnricher

onEventStoreAppendToStream() 공개 메소드

Add event metadata on event store appendToStream.
public onEventStoreAppendToStream ( Prooph\Common\Event\ActionEvent $appendToStreamEvent )
$appendToStreamEvent Prooph\Common\Event\ActionEvent

onEventStoreCreateStream() 공개 메소드

Add event metadata on event store createStream.
public onEventStoreCreateStream ( Prooph\Common\Event\ActionEvent $createEvent )
$createEvent Prooph\Common\Event\ActionEvent

setUp() 공개 메소드

public setUp ( EventStore $eventStore )
$eventStore Prooph\EventStore\EventStore