PHP Класс Prooph\EventStore\Metadata\MetadataEnricherPlugin

Наследование: implements Prooph\EventStore\Plugin\Plugin
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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