You are here

public function CacheFactoryWrapper::__construct in Devel 8.3

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

Creates a new CacheFactoryWrapper instance.

Parameters

\Drupal\Core\Cache\CacheFactoryInterface $cache_factory: The cache factory.

\Drupal\webprofiler\DataCollector\CacheDataCollector $cacheDataCollector: The cache data collector.

File

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

Class

CacheFactoryWrapper
Wraps a cache factory to register all calls to the cache system.

Namespace

Drupal\webprofiler\Cache

Code

public function __construct(CacheFactoryInterface $cache_factory, CacheDataCollector $cacheDataCollector) {
  $this->cacheFactory = $cache_factory;
  $this->cacheDataCollector = $cacheDataCollector;
}