users = $users; } /** * @param $id * @param ProfileEditForm $form * @throws Exception */ public function edit($id, ProfileEditForm $form): void { $user = $this->users->get($id); $user->editProfile($form->email, $form->username, $form->password, $form->user_pic, $form->backend_language); $this->users->save($user); } }