Beispiel #1
0
 /**
  * @throws Nette\Application\AbortException
  * @throws OAuth\Exceptions\RequestFailedException
  */
 public function open()
 {
     if ($this->client->obtainRequestToken()) {
         $this->presenter->redirectUrl($this->getUrl());
     } else {
         throw new OAuth\Exceptions\RequestFailedException(sprintf('User could not be authenticated to "%s".', 'twitter'));
     }
 }