Exemple #1
0
 public function that($event, $aggregateIdentifier)
 {
     foreach ($this->listeners as $listener) {
         if ($listener->listensTo($event)) {
             $listener->on($event);
         }
     }
     $this->store->append($event, $aggregateIdentifier);
 }
Exemple #2
0
 private function appendEvents($events, $identifier)
 {
     foreach ($events as $event) {
         $this->store->append($event, $identifier);
     }
 }