public __construct ( |
||
$eventStore | ||
$aggregateType | ||
$aggregateTranslator | Prooph\EventStore\Aggregate\AggregateTranslator | |
$snapshotStore | ||
$streamName | ||
$oneStreamPerAggregate | boolean |
/** * @param EventStore $eventStore */ public function __construct(EventStore $eventStore) { $aggregateType = AggregateType::fromAggregateRootClass('Prooph\\Processing\\Processor\\Process'); parent::__construct($eventStore, new AggregateTranslator(), new SingleStreamStrategy($eventStore, 'prooph_processing_stream'), $aggregateType); }
/** * @param EventStore $eventStore */ public function __construct(EventStore $eventStore) { parent::__construct($eventStore, new AggregateTranslator(), new SingleStreamStrategy($eventStore, 'link_process_manager_stream'), AggregateType::fromAggregateRootClass('Prooph\\Link\\ProcessManager\\Model\\MessageHandler')); }
public function __construct(EventStore $eventStore) { //We inject a Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator that can handle our AggregateRoots parent::__construct($eventStore, AggregateType::fromAggregateRootClass('My\\Model\\User'), new AggregateTranslator(), null, null, true); }
/** * @param EventStore $eventStore * @param string $storyLogStreamName * @param SnapshotStore $snapshotStore */ public function __construct(EventStore $eventStore, $storyLogStreamName = 'prooph_story_stream', SnapshotStore $snapshotStore = null) { parent::__construct($eventStore, AggregateType::fromAggregateRootClass(Story::class), new AggregateTranslator(), new SingleStreamStrategy($eventStore, $storyLogStreamName), $snapshotStore); }
/** * @param EventStore $eventStore */ public function __construct(EventStore $eventStore) { parent::__construct($eventStore, new AggregateTranslator(), new SingleStreamStrategy($eventStore, 'link_process_manager_stream'), AggregateType::fromAggregateRootClass(Task::class)); }