userSvc = $userSvc; } /** * After a user has been created, do some stuff * * @param User $user */ public function created(User $user): void { $this->userSvc->findAndSetPilotId($user); } }