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

Breadcrumb

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

function ServiceLoaderIterator::__construct

Parameters

class-string<S> $service:

list<class-string> $providers:

array<int, S|false> $cache:

File

vendor/tbachert/spi/src/ServiceLoaderIterator.php, line 33

Class

ServiceLoaderIterator
@template-covariant S of object service type @implements Iterator<class-string, S>

Namespace

Nevay\SPI

Code

public function __construct(string $service, array $providers, array &$cache) {
    $this->service = $service;
    $this->providers = $providers;
    $this->cache =& $cache;
}

API Navigation

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