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

Breadcrumb

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

function GitHubDriver::getApiUrl

7 calls to GitHubDriver::getApiUrl()
GitHubDriver::fetchRootIdentifier in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
Fetch root identifier from GitHub
GitHubDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitHubDriver::getChangeDate in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitHubDriver::getDist in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitHubDriver::getFileContent in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc

... See full list

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

protected function getApiUrl() : string {
    if ('github.com' === $this->originUrl) {
        $apiUrl = 'api.github.com';
    }
    else {
        $apiUrl = $this->originUrl . '/api/v3';
    }
    return 'https://' . $apiUrl;
}
RSS feed
Powered by Drupal