Ejemplo n.º 1
0
 /**
  * Get the appropriate repository cloner
  *
  * @return RepositoryCloner
  */
 protected function getCloner()
 {
     switch ($this->payload->getRepositoryType()) {
         default:
             $this->status(Phase::ERROR(), 0, 0, "Unknown repository type: " . $this->payload->getRepositoryType());
             return null;
         case RepositoryType::GIT():
             return new GitCloner();
         case RepositoryType::SVN():
             return new SvnCloner();
     }
 }