function VcsDriver::__construct
Constructor.
Parameters
array{url: string}&array<string, mixed> $repoConfig The repository configuration:
IOInterface $io The IO instance:
Config $config The composer configuration:
HttpDownloader $httpDownloader Remote Filesystem, injectable for mocking:
ProcessExecutor $process Process instance, injectable for mocking:
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ VcsDriver.php, line 61
Class
- VcsDriver
- A driver implementation for driver with authentication interaction.
Namespace
Composer\Repository\VcsCode
public final function __construct(array $repoConfig, IOInterface $io, Config $config, HttpDownloader $httpDownloader, ProcessExecutor $process) {
if (Filesystem::isLocalPath($repoConfig['url'])) {
$repoConfig['url'] = Filesystem::getPlatformPath($repoConfig['url']);
}
$this->url = $repoConfig['url'];
$this->originUrl = $repoConfig['url'];
$this->repoConfig = $repoConfig;
$this->io = $io;
$this->config = $config;
$this->httpDownloader = $httpDownloader;
$this->process = $process;
}