You are here

protected function Store::generateContentDigest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/HttpCache/Store.php \Symfony\Component\HttpKernel\HttpCache\Store::generateContentDigest()

Returns content digest for $response.

Parameters

Response $response:

Return value

string

1 call to Store::generateContentDigest()
Store::write in vendor/symfony/http-kernel/HttpCache/Store.php
Writes a cache entry to the store for the given Request and Response.

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 216

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

protected function generateContentDigest(Response $response) {
  return 'en' . hash('sha256', $response
    ->getContent());
}