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

Breadcrumb

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

function GitHubDriver::getDist

@inheritDoc

Overrides VcsDriverInterface::getDist

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php, line 146

Class

GitHubDriver
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Repository\Vcs

Code

public function getDist(string $identifier) : ?array {
    $url = $this->getApiUrl() . '/repos/' . $this->owner . '/' . $this->repository . '/zipball/' . $identifier;
    return [
        'type' => 'zip',
        'url' => $url,
        'reference' => $identifier,
        'shasum' => '',
    ];
}
RSS feed
Powered by Drupal