コード例 #1
0
 protected function generateEmail(OAuthInterface $oauth)
 {
     $email = $oauth->getEmail();
     if (!$email) {
         $email = $oauth->getOwner() . '-' . $oauth->getUsername() . '@' . '';
     }
     return $email;
 }
コード例 #2
0
 public function addOAuth(OAuthInterface $oauth)
 {
     $this->oauths[$oauth->getOwner()] = $oauth;
     return $this;
 }