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

Breadcrumb

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

function ServiceLoader::load

Lazy loads service providers for the given service.

@template S_ of object service type

Parameters

class-string<S_> $service service to load:

Return value

ServiceLoader<S_> service loader for the given service

2 calls to ServiceLoader::load()
SdkAutoloader::getHookManager in vendor/open-telemetry/sdk/SdkAutoloader.php
SdkAutoloader::registerInstrumentations in vendor/open-telemetry/sdk/SdkAutoloader.php
Register all {@link Instrumentation} configured through SPI @psalm-suppress ArgumentTypeCoercion

File

vendor/tbachert/spi/src/ServiceLoader.php, line 82

Class

ServiceLoader
Service provider loading facility.

Namespace

Nevay\SPI

Code

public static function load(string $service) : ServiceLoader {
    return new self($service, self::providers($service));
}

API Navigation

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