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