Exemplo n.º 1
0
 /**
  * @param UserWasRegistered $event
  */
 public function onUserWasRegistered(UserWasRegistered $event)
 {
     $this->connection->insert(Table::USER, ['id' => $event->userId()->toString(), 'name' => $event->name(), 'email' => $event->emailAddress()->toString()]);
 }
Exemplo n.º 2
0
 /**
  * @param UserWasRegistered $event
  */
 protected function whenUserWasRegistered(UserWasRegistered $event)
 {
     $this->userId = $event->userId();
     $this->name = $event->name();
     $this->emailAddress = $event->emailAddress();
 }