/**
  * @param CreateUserCommand $command
  * @return void
  */
 public function handle(CreateUserCommand $command)
 {
     $user = User::create($command->getUserId(), $command->getName());
     $this->usersRepository->save($user);
 }
 /**
  * @param RemoveUserCommand $command
  * @return void
  */
 public function handle(RemoveUserCommand $command)
 {
     $user = $this->usersRepository->get($command->getUserId());
     $user->remove();
     $this->usersRepository->save($user);
 }