Ejemplo n.º 1
0
 /**
  * @param OutputInterface $output
  * @return string
  * @throws Exception
  */
 protected function getOAUTHToken(OutputInterface $output)
 {
     $token = getenv('GITHUB_API_TOKEN');
     if (empty($token)) {
         $token = Composer::getOAUTHToken($this->getCommandRunner($output));
     }
     if (empty($token)) {
         throw new Exception("Couldn't determine GitHub oAuth token. Please set GITHUB_API_TOKEN");
     }
     return $token;
 }