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

Breadcrumb

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

function HttpDownloader::isCurlEnabled

@internal

4 calls to HttpDownloader::isCurlEnabled()
DiagnoseCommand::getCurlVersion in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php
HttpDownloader::__construct in vendor/composer/composer/src/Composer/Util/HttpDownloader.php
InstallCommand::execute in vendor/composer/composer/src/Composer/Command/InstallCommand.php
Executes the current command.
UpdateCommand::execute in vendor/composer/composer/src/Composer/Command/UpdateCommand.php
Executes the current command.

File

vendor/composer/composer/src/Composer/Util/HttpDownloader.php, line 547

Class

HttpDownloader
@author Jordi Boggiano <j.boggiano@seld.be> @phpstan-type Request array{url: non-empty-string, options: mixed[], copyTo: string|null} @phpstan-type Job array{id: int, status: int, request: Request, sync: bool, origin: string, resolve?: callable,…

Namespace

Composer\Util

Code

public static function isCurlEnabled() : bool {
    return \extension_loaded('curl') && \function_exists('curl_multi_exec') && \function_exists('curl_multi_init');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal