private function insertRegisteredUser(UserRegistered $payload)
 {
     $data = [];
     $data['userIdentifier'] = $payload->userIdentifier()->toString();
     $data['username'] = $payload->username()->toString();
     $data['hashedPassword'] = $payload->hashedPassword()->toString();
     $data['at'] = $payload->at()->format('Y-m-d H:i:s');
     $this->connection->insert($this->table, $data);
 }
Ejemplo n.º 2
0
 /**
  * @param UserRegistered $userRegistered
  */
 public function applyUserRegistered(UserRegistered $userRegistered)
 {
     $this->setIdentifier($userRegistered->userIdentifier());
     $this->hashedPassword = $userRegistered->hashedPassword();
     $this->username = $userRegistered->username();
 }