/** * @param IdentifiesObject $id * * @throws Exceptions\EventStreamNotFound * @return EventStream */ private function getEventStreamForAggregateRootId(IdentifiesObject $id) { return $this->eventStore->getEventStreamForId($id); }
/** * @param CollectsEventEnvelopes $events * * @throws CommittingEventsFailed */ private function commitChangesToEventStore(CollectsEventEnvelopes $events) { $this->eventStore->commitEvents($events); }