public function onUserRegister(OW_Event $event) { $params = $event->getParams(); $userId = $params['userId']; $this->service->catchAffiliateSignup($userId); }