public function Twig_Cache_Filesystem::generateKey in Translation template extractor 7.3
Generates a cache key for the given template class name.
Parameters
string $name The template name:
string $className The template class name:
Return value
string
Overrides Twig_CacheInterface::generateKey
File
- vendor/
Twig/ Cache/ Filesystem.php, line 37
Class
- Twig_Cache_Filesystem
- Implements a cache on the filesystem.
Code
public function generateKey($name, $className) {
$hash = hash('sha256', $className);
return $this->directory . '/' . $hash[0] . $hash[1] . '/' . $hash . '.php';
}