Make handlebars cache adapter compatible with the new version of handlebars.php

This commit is contained in:
Fedor A. Fetisov 2016-12-29 18:23:41 +03:00
parent 0fc11b3885
commit cc55a13151

View File

@ -87,7 +87,7 @@ class CacheAdapter implements HandlebarsCacheInterface, CacheAwareInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function set($name, $value) public function set($name, $value, $ttl = 0)
{ {
$item = $this->getCacheItem($name); $item = $this->getCacheItem($name);
// Cache templates for twelve hours. Actually we can use arbitrary value // Cache templates for twelve hours. Actually we can use arbitrary value