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

Breadcrumb

  1. Drupal Core 11.1.x

PsrClientResolver.php

Namespace

OpenTelemetry\SDK\Common\Adapter\HttpDiscovery

File

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

View source
<?php

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

use Http\Discovery\Psr18ClientDiscovery;
use OpenTelemetry\SDK\Common\Http\Psr\Client\ResolverInterface;
use Psr\Http\Client\ClientInterface;
final class PsrClientResolver implements ResolverInterface {
    public function __construct(?ClientInterface $client = null) {
    }
    public static function create(?ClientInterface $client = null) : self {
        return new self($client);
    }
    public function resolvePsrClient() : ClientInterface {
        return $this->client ??= Psr18ClientDiscovery::find();
    }

}

Classes

Title Deprecated Summary
PsrClientResolver

API Navigation

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