Skip to content
Browse files

Loaders are now using native symfony cache directory based on sf_temp…

…late_cache_dir setting name
  • Loading branch information...
1 parent e34c305 commit a65d580c12b1cfa391387b952f10cd645f66164a Henrik Bjørnskov committed Oct 10, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/view/sfTwigView.class.php
View
4 lib/view/sfTwigView.class.php
@@ -34,8 +34,8 @@ public function execute()
$configuration = $this->context->getConfiguration();
//sets up a Twig_Loader_Array with directories
- $this->twig_loaders['decorator'] = new Twig_Loader_FileSystem($this->getDecoratorDirectory(), null);
- $this->twig_loaders['module'] = new Twig_Loader_FileSystem($this->getDirectory(), null);
+ $this->twig_loaders['decorator'] = new Twig_Loader_FileSystem($this->getDecoratorDirectory(), sfConfig::get('sf_template_cache_dir'));
+ $this->twig_loaders['module'] = new Twig_Loader_FileSystem($this->getDirectory(), sfConfig::get('sf_template_cache_dir'));
//Setting the $loader to null lets us swap the loader out as we need it on the same instance.
$this->twig = new Twig_Environment(null);

0 comments on commit a65d580

Please sign in to comment.
Something went wrong with that request. Please try again.