function GitBitbucketDriver::getDist
@inheritDoc
Overrides VcsDriverInterface::getDist
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitBitbucketDriver.php, line 280
Class
- GitBitbucketDriver
- @author Per Bernhardt <plb@webfactory.de>
Namespace
Composer\Repository\VcsCode
public function getDist(string $identifier) : ?array {
if ($this->fallbackDriver) {
return $this->fallbackDriver
->getDist($identifier);
}
$url = sprintf('https://bitbucket.org/%s/%s/get/%s.zip', $this->owner, $this->repository, $identifier);
return [
'type' => 'zip',
'url' => $url,
'reference' => $identifier,
'shasum' => '',
];
}