You are here

public function CacheBackendWrapper::__construct in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()
  2. 8.2 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()
  3. 4.x webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()

Constructs a new CacheBackendWrapper.

Parameters

\Drupal\webprofiler\DataCollector\CacheDataCollector $cacheDataCollector: The cache data collector to inform about cache get calls.

\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The wrapped cache backend.

string $bin: The name of the wrapped cache bin.

File

webprofiler/src/Cache/CacheBackendWrapper.php, line 46

Class

CacheBackendWrapper
Wraps an existing cache backend to track calls to the cache backend.

Namespace

Drupal\webprofiler\Cache

Code

public function __construct(CacheDataCollector $cacheDataCollector, CacheBackendInterface $cacheBackend, $bin) {
  $this->cacheDataCollector = $cacheDataCollector;
  $this->cacheBackend = $cacheBackend;
  $this->bin = $bin;
}