Esempio n. 1
0
 public function findByOauthId($provider, $uid)
 {
     $found = $this->repository->findByOauthId($provider, $uid);
     if (is_null($found)) {
         throw new UsernameNotFoundException("We don't know [{$provider}, {$uid}]");
     }
     return $found;
 }