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

Breadcrumb

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

function GitLab::__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:

File

vendor/composer/composer/src/Composer/Util/GitLab.php, line 43

Class

GitLab
@author Roshan Gautam <roshan.gautam@hotmail.com>

Namespace

Composer\Util

Code

public function __construct(IOInterface $io, Config $config, ?ProcessExecutor $process = null, ?HttpDownloader $httpDownloader = null) {
    $this->io = $io;
    $this->config = $config;
    $this->process = $process ?: new ProcessExecutor($io);
    $this->httpDownloader = $httpDownloader ?: Factory::createHttpDownloader($this->io, $config);
}

API Navigation

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