class CachedDiscoveryClearer implements CachedDiscoveryClearerInterface (View source)

Defines a class which is capable of clearing the cache on plugin managers.

Properties

protected CachedDiscoveryInterface[] $cachedDiscoveries

The stored discoveries.

Methods

addCachedDiscovery(CachedDiscoveryInterface $cached_discovery)

Adds a plugin manager to the active list.

clearCachedDefinitions()

Clears the cache on all cached discoveries.

Details

addCachedDiscovery(CachedDiscoveryInterface $cached_discovery)

Adds a plugin manager to the active list.

Parameters

CachedDiscoveryInterface $cached_discovery

An object that implements the cached discovery interface, typically a plugin manager.

clearCachedDefinitions()

Clears the cache on all cached discoveries.