__construct() 공개 메소드

public __construct ( EventStore $eventStore, AggregateType $aggregateType, Prooph\EventStore\Aggregate\AggregateTranslator $aggregateTranslator, SnapshotStore $snapshotStore = null, StreamName $streamName = null, boolean $oneStreamPerAggregate = false )
$eventStore Prooph\EventStore\EventStore
$aggregateType AggregateType
$aggregateTranslator Prooph\EventStore\Aggregate\AggregateTranslator
$snapshotStore Prooph\EventStore\Snapshot\SnapshotStore
$streamName Prooph\EventStore\Stream\StreamName
$oneStreamPerAggregate boolean
예제 #1
0
 /**
  * @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'));
 }
예제 #3
0
 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);
 }
예제 #4
0
 /**
  * @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));
 }