Esempio n. 1
0
 /**
  * Gets the key used for the metadata hash cache store
  *
  * @param MetaDataContextInterface|null $context Metadata context
  * @return string The key for this platform and visibility version of metadata
  */
 protected function getCachedMetadataHashKey(MetaDataContextInterface $context)
 {
     if ($this->public) {
         $prefix = 'public_';
     } else {
         $hash = $context->getHash();
         if ($hash) {
             $prefix = $hash . '_';
         } else {
             $prefix = '';
         }
     }
     $key = "meta_hash_{$prefix}" . implode("_", $this->platforms);
     return $key;
 }
 /** {@inheritDoc} */
 public function getHash()
 {
     return $this->context->getHash();
 }