public function CachedStorage::__construct

Constructs a new CachedStorage controller.

Parameters

Drupal\Core\Config\StorageInterface $storage: A configuration storage controller to be cached.

Drupal\Core\Cache\CacheBackendInterface $cache: A cache backend instance to use for caching.

File

drupal/core/lib/Drupal/Core/Config/CachedStorage.php, line 43
Contains Drupal\Core\Config\CachedStorage.

Class

CachedStorage
Defines the cached storage controller.

Namespace

Drupal\Core\Config

Code

public function __construct(StorageInterface $storage, CacheBackendInterface $cache) {
  $this->storage = $storage;
  $this->cache = $cache;
}