This commit is contained in:
Fabien Potencier
2015-01-13 12:29:49 +01:00
parent d375c805fb
commit d6b2c89f6f
+6 -6
View File
@@ -223,12 +223,12 @@ class Twig_Environment
return $this->cache;
}
/**
* Sets the cache directory or false if cache is disabled.
*
* @param string|false $cache The absolute path to the compiled templates,
* or false to disable cache
*/
/**
* Sets the cache directory or false if cache is disabled.
*
* @param string|false $cache The absolute path to the compiled templates,
* or false to disable cache
*/
public function setCache($cache)
{
$this->cache = $cache ? $cache : false;