You are here

public function ApeSubscriber::__construct in Advanced Page Expiration 8

File

src/EventSubscriber/ApeSubscriber.php, line 58

Class

ApeSubscriber
Alter Cache-control header based on configuration of ape.

Namespace

Drupal\ape\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, FactoryInterface $plugin_factory) {
  $this->configApe = $config_factory
    ->get('ape.settings');
  $this->configSystem = $config_factory
    ->get('system.performance');
  $this->requestPolicy = $request_policy;
  $this->responsePolicy = $response_policy;
  $this->conditionManager = $plugin_factory;
}