You are here

public function VariationCacheFactory::__construct in VariationCache 8

Constructs a new VariationCacheFactory object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

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

\Drupal\Core\Cache\Context\CacheContextsManager $cache_contexts_manager: The cache contexts manager.

File

src/Cache/VariationCacheFactory.php, line 54

Class

VariationCacheFactory
Defines the variation cache factory.

Namespace

Drupal\variationcache\Cache

Code

public function __construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager) {
  $this->requestStack = $request_stack;
  $this->cacheFactory = $cache_factory;
  $this->cacheContextsManager = $cache_contexts_manager;
}