Exemplo n.º 1
0
 public function __construct($url, IOInterface $io)
 {
     preg_match('#^(?:https?|git)://github\\.com/([^/]+)/(.+?)(?:\\.git)?$#', $url, $match);
     $this->owner = $match[1];
     $this->repository = $match[2];
     parent::__construct($url, $io);
 }
Exemplo n.º 2
0
 public function __construct($url, IOInterface $io)
 {
     preg_match('#^https://bitbucket\\.org/([^/]+)/([^/]+)/?$#', $url, $match);
     $this->owner = $match[1];
     $this->repository = $match[2];
     parent::__construct($url, $io);
 }
Exemplo n.º 3
0
 public function __construct($url, IOInterface $io, ProcessExecutor $process = null)
 {
     parent::__construct($this->baseUrl = rtrim($url, '/'), $io, $process);
     if (false !== ($pos = strrpos($url, '/trunk'))) {
         $this->baseUrl = substr($url, 0, $pos);
     }
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param string $url
  * @param IOInterface $io
  * @param ProcessExecutor $process
  * @param RemoteFilesystem $remoteFilesystem
  */
 public function __construct($url, IOInterface $io, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
 {
     preg_match('#^(?:https?|git)://github\\.com/([^/]+)/(.+?)(?:\\.git)?$#', $url, $match);
     $this->owner = $match[1];
     $this->repository = $match[2];
     parent::__construct($url, $io, $process, $remoteFilesystem);
 }
Exemplo n.º 5
0
 /**
  * @param string          $url
  * @param IOInterface     $io
  * @param ProcessExecutor $process
  *
  * @return $this
  */
 public function __construct($url, IOInterface $io, ProcessExecutor $process = null)
 {
     $url = self::normalizeUrl($url);
     parent::__construct($this->baseUrl = rtrim($url, '/'), $io, $process);
     if (false !== ($pos = strrpos($url, '/trunk'))) {
         $this->baseUrl = substr($url, 0, $pos);
     }
     $this->util = new SvnUtil($this->baseUrl, $io, $this->process);
 }
Exemplo n.º 6
0
 public function __construct($url, IOInterface $io, ProcessExecutor $process = null)
 {
     parent::__construct($url, $io, $process);
 }
Exemplo n.º 7
0
 public function __construct($url, IOInterface $io, ProcessExecutor $process = null)
 {
     $this->tmpDir = sys_get_temp_dir() . '/composer-' . preg_replace('{[^a-z0-9]}i', '-', $url) . '/';
     parent::__construct($url, $io, $process);
 }