public function SurrogateKeyGenerator::__construct in Fastly 8.3
Constructs a new CacheTagsHeaderLimitDetector object.
Parameters
\Psr\Log\LoggerInterface $logger: The Fastly logger channel.
\Drupal\fastly\CacheTagsHash $cache_tags_hash: The Fastly logger channel.
File
- src/
EventSubscriber/ SurrogateKeyGenerator.php, line 41
Class
- SurrogateKeyGenerator
- Generates a 'Surrogate-Key' header in the format expected by Fastly.
Namespace
Drupal\fastly\EventSubscriberCode
public function __construct(LoggerInterface $logger, CacheTagsHash $cache_tags_hash) {
$this->logger = $logger;
$this->cacheTagsHash = $cache_tags_hash;
}