Esempio n. 1
0
 /**
  * Creates a new GitLabAdapter object with the given Configuration.
  *
  * @param array  $adapterConfig
  * @param Config $globalConfig
  *
  * @return GitLabAdapter
  */
 public static function createAdapter(array $adapterConfig, Config $globalConfig)
 {
     $adapter = new GitLabRepoAdapter($adapterConfig);
     return $adapter->setClient(static::getGitlabClient($adapterConfig['base_url']));
 }
Esempio n. 2
0
 public function createRepositoryManager(array $adapterConfig, Config $config)
 {
     $adapter = new GitLabRepoAdapter($adapterConfig);
     return $adapter->setClient(static::getGitLabClient($adapterConfig['base_url']));
 }