function Bitbucket::__construct
Constructor.
Parameters
IOInterface $io The IO instance:
Config $config The composer configuration:
ProcessExecutor $process Process instance, injectable for mocking:
HttpDownloader $httpDownloader Remote Filesystem, injectable for mocking:
int $time Timestamp, injectable for mocking:
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Bitbucket.php, line 49
Class
- Bitbucket
- @author Paul Wenke <wenke.paul@gmail.com>
Namespace
Composer\UtilCode
public function __construct(IOInterface $io, Config $config, ?ProcessExecutor $process = null, ?HttpDownloader $httpDownloader = null, ?int $time = null) {
$this->io = $io;
$this->config = $config;
$this->process = $process ?: new ProcessExecutor($io);
$this->httpDownloader = $httpDownloader ?: Factory::createHttpDownloader($this->io, $config);
$this->time = $time;
}