Exemplo n.º 1
0
 public static function calculateMd5(EntityBodyInterface $body, $rawOutput = false, $base64Encode = false)
 {
     Version::warn(__CLASS__ . ' is deprecated. Use getContentMd5()');
     return $body->getContentMd5($rawOutput, $base64Encode);
 }
Exemplo n.º 2
0
 /**
  * Create a cache key for a response's body
  *
  * @param string              $url  URL of the entry
  * @param EntityBodyInterface $body Response body
  *
  * @return string
  */
 protected function getBodyKey($url, EntityBodyInterface $body)
 {
     return $this->keyPrefix . md5($url) . $body->getContentMd5();
 }