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

Breadcrumb

  1. Drupal Core 11.1.x

HttpPlugClientResolver.php

Namespace

OpenTelemetry\SDK\Common\Adapter\HttpDiscovery

File

vendor/open-telemetry/sdk/Common/Adapter/HttpDiscovery/HttpPlugClientResolver.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\Adapter\HttpDiscovery;

use Http\Client\HttpAsyncClient;
use Http\Discovery\HttpAsyncClientDiscovery;
use OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface;
final class HttpPlugClientResolver implements ResolverInterface {
    public function __construct(?HttpAsyncClient $httpAsyncClient = null) {
    }
    public static function create(?HttpAsyncClient $httpAsyncClient = null) : self {
        return new self($httpAsyncClient);
    }
    public function resolveHttpPlugAsyncClient() : HttpAsyncClient {
        return $this->httpAsyncClient ??= HttpAsyncClientDiscovery::find();
    }

}

Classes

Title Deprecated Summary
HttpPlugClientResolver

API Navigation

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