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

Breadcrumb

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

function ArtifactRepository::__construct

Parameters

array{url: string} $repoConfig:

Overrides ArrayRepository::__construct

File

vendor/composer/composer/src/Composer/Repository/ArtifactRepository.php, line 42

Class

ArtifactRepository
@author Serge Smertin <serg.smertin@gmail.com>

Namespace

Composer\Repository

Code

public function __construct(array $repoConfig, IOInterface $io) {
    parent::__construct();
    if (!extension_loaded('zip')) {
        throw new \RuntimeException('The artifact repository requires PHP\'s zip extension');
    }
    $this->loader = new ArrayLoader();
    $this->lookup = Platform::expandPath($repoConfig['url']);
    $this->io = $io;
    $this->repoConfig = $repoConfig;
}

API Navigation

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