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); }
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); }
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); } }
/** * 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); }
/** * @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); }
public function __construct($url, IOInterface $io, ProcessExecutor $process = null) { parent::__construct($url, $io, $process); }
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); }