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

Breadcrumb

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

function Discovery::find

Attempt discovery of a configurable psr-18 http client, falling back to Psr18ClientDiscovery.

1 call to Discovery::find()
PsrTransportFactory::create in vendor/open-telemetry/sdk/Common/Export/Http/PsrTransportFactory.php
@phan-suppress PhanTypeMismatchArgumentNullable

File

vendor/open-telemetry/sdk/Common/Http/Psr/Client/Discovery.php, line 33

Class

Discovery

Namespace

OpenTelemetry\SDK\Common\Http\Psr\Client

Code

public static function find(array $options = []) : ClientInterface {
    $options = array_filter($options);
    foreach (self::discoverers() as $clientDiscovery) {
        
        /** @var DiscoveryInterface $clientDiscovery */
        if ($clientDiscovery->available()) {
            return $clientDiscovery->create($options);
        }
    }
    return Psr18ClientDiscovery::find();
}

API Navigation

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