Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Bitbucket.php

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\Util

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal