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

Breadcrumb

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

function VcsDriverInterface::supports

Checks if this driver can handle a given url

Parameters

IOInterface $io IO instance:

Config $config current $config:

string $url URL to validate/check:

bool $deep unless true, only shallow checks (url matching typically) should be done:

8 methods override VcsDriverInterface::supports()
FossilDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/FossilDriver.php
@inheritDoc
GitBitbucketDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
@inheritDoc
GitDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/GitDriver.php
@inheritDoc
GitHubDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
Uses the config `gitlab-domains` to see if the driver supports the url for the repository given.

... See full list

File

vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriverInterface.php, line 109

Class

VcsDriverInterface
@author Jordi Boggiano <j.boggiano@seld.be> @internal

Namespace

Composer\Repository\Vcs

Code

public static function supports(IOInterface $io, Config $config, string $url, bool $deep = false) : bool;
RSS feed
Powered by Drupal