public function CacheFactoryWrapper::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/Cache/CacheFactoryWrapper.php \Drupal\webprofiler\Cache\CacheFactoryWrapper::__construct()
- 8 webprofiler/src/Cache/CacheFactoryWrapper.php \Drupal\webprofiler\Cache\CacheFactoryWrapper::__construct()
- 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\CacheCode
public function __construct(CacheFactoryInterface $cache_factory, CacheDataCollector $cacheDataCollector) {
$this->cacheFactory = $cache_factory;
$this->cacheDataCollector = $cacheDataCollector;
}