示例#1
0
 /**
  * Bootstrap the Bitbucket API for Repositories.
  *
  * @param  RepositoryInterface $repo
  * @return Repository
  */
 private function bootstrapApi(RepositoryInterface $repo)
 {
     $api = new Repository();
     $credentials = new Basic($repo->getUsername(), $repo->getPassword());
     $api->setCredentials($credentials);
     return $api;
 }