Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. class User extends DomainModel implements UserInterface
  3. {
  4. public function prepareRegistration(): void
  5. {
  6. $this->registrationToken = base64_encode(\random_bytes(30));
  7. $this->dispatch(new Register($this, $this->registrationToken), self::EVENT_PREPARE_REGISTRATION);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement