diff options
Diffstat (limited to 'app/frontend/events/RegistrationEvents.php')
-rw-r--r-- | app/frontend/events/RegistrationEvents.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/frontend/events/RegistrationEvents.php b/app/frontend/events/RegistrationEvents.php new file mode 100644 index 0000000..21bcff3 --- /dev/null +++ b/app/frontend/events/RegistrationEvents.php @@ -0,0 +1,16 @@ +<?php + +Prado::using('Application.events.EventModule'); +Prado::using('Application.model.User'); +Prado::using('Application.facades.UserFacade'); + +class RegistrationEvents extends EventModule { + + public function onUserRegistered(User $user) { + $facade = UserFacade::getInstance(); + $facade->requestActivation($user); + } + +} + +?> |