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

Breadcrumb

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

function VcsDriver::getContents

Get the remote content.

Parameters

string $url The URL of content:

Throws

TransportException

6 calls to VcsDriver::getContents()
GitBitbucketDriver::fetchWithOAuthCredentials in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
Get the remote content.
GitBitbucketDriver::fetchWithOAuthCredentials in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
Get the remote content.
GitHubDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitHubDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@inheritDoc

... See full list

3 methods override VcsDriver::getContents()
GitHubDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@inheritDoc
PerforceDriver::getContents in vendor/composer/composer/src/Composer/Repository/Vcs/PerforceDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriver.php, line 166

Class

VcsDriver
A driver implementation for driver with authentication interaction.

Namespace

Composer\Repository\Vcs

Code

protected function getContents(string $url) : Response {
    $options = $this->repoConfig['options'] ?? [];
    return $this->httpDownloader
        ->get($url, $options);
}
RSS feed
Powered by Drupal