/**
  * @param Command|ResetPassword $command
  */
 public function handle(Command $command)
 {
     /** @var User $user */
     $user = $this->userRepository->get($command->getUserId());
     $user->resetPassword($command->getResetToken(), $command->getPassword(), $this->encoder);
 }