public function CacheableResponseSubscriber::__construct in Akamai 8.3
Constructs a new CacheableResponseSubscriber.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\akamai\Helper\CacheTagFormatter $formatter: The cache tag formatter.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
File
- src/
EventSubscriber/ CacheableResponseSubscriber.php, line 50
Class
- CacheableResponseSubscriber
- Add cache tags headers on cacheable responses, for external caching systems.
Namespace
Drupal\akamai\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, CacheTagFormatter $formatter, EventDispatcherInterface $event_dispatcher) {
$this->configFactory = $config_factory;
$this->tagFormatter = $formatter;
$this->eventDispatcher = $event_dispatcher;
}