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

Breadcrumb

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

function ServiceLoader::reload

Reloads this service loader, clearing all cached instances.

File

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

Class

ServiceLoader
Service provider loading facility.

Namespace

Nevay\SPI

Code

public function reload() : void {
    unset($this->cache);
    $this->cache = [];
    $this->providers = self::providers($this->service);
}

API Navigation

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