コード例 #1
0
ファイル: FollowUser.php プロジェクト: kfuchs/cribbb
 /**
  * Find a User by their id
  *
  * @param string $id
  * @return User
  */
 private function findUserById($id)
 {
     $user = $this->users->userById(UserId::fromString($id));
     if ($user) {
         return $user;
     }
     throw new ValueNotFoundException("{$id} is not a valid user id");
 }