How do I capture user events in Craft 3? I looked at the documentation but couldn't figure it out. I need to capture after user registration events and after user save events.
Here is what I tried, I know it's not correct but I think I'm pretty close
Event::on(
Users::class,
Users::EVENT_AFTER_USER_SAVE,
function (PluginEvent $event) {
// do something
}
);