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

Breadcrumb

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

function Client::__construct

Same name in this branch
  1. 11.1.x vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::__construct()

File

vendor/php-http/guzzle7-adapter/src/Client.php, line 29

Class

Client
HTTP Adapter for Guzzle 7.

Namespace

Http\Adapter\Guzzle7

Code

public function __construct(?ClientInterface $guzzle = null) {
    if (!$guzzle) {
        $guzzle = self::buildClient();
    }
    $this->guzzle = $guzzle;
}

API Navigation

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