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

Breadcrumb

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

function Curl::__construct

File

vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php, line 24

Class

Curl
Tries to retrieve JSON schemas from a URI using cURL library

Namespace

JsonSchema\Uri\Retrievers

Code

public function __construct() {
    if (!function_exists('curl_init')) {
        // Cannot test this, because curl_init is present on all test platforms plus mock
        throw new RuntimeException('cURL not installed');
        // @codeCoverageIgnore
    }
}

API Navigation

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