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

Breadcrumb

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

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

Code

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' => '',
    ];
}
RSS feed
Powered by Drupal