Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User extends DomainModel implements UserInterface
- {
- public function prepareRegistration(): void
- {
- $this->registrationToken = base64_encode(\random_bytes(30));
- $this->dispatch(new Register($this, $this->registrationToken), self::EVENT_PREPARE_REGISTRATION);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement