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

Breadcrumb

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

function VcsDriver::getScheme

Get the https or http protocol depending on SSL support.

Call this only if you know that the server supports both.

Return value

string The correct type of protocol

File

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

Class

VcsDriver
A driver implementation for driver with authentication interaction.

Namespace

Composer\Repository\Vcs

Code

protected function getScheme() : string {
    if (extension_loaded('openssl')) {
        return 'https';
    }
    return 'http';
}
RSS feed
Powered by Drupal