Permalink
Browse files

Added auto reload of twig template cache

  • Loading branch information...
1 parent d27023e commit 24a5cbafebe925afd4cb73ccf67f1a9d434db950 @mpscholten committed Oct 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Propel/Generator/Builder/Om/ObjectBuilder.php
View
2 src/Propel/Generator/Builder/Om/ObjectBuilder.php
@@ -38,7 +38,7 @@ public function __construct(Table $table)
{
parent::__construct($table);
$loader = new \Twig_Loader_Filesystem(__DIR__ . '/templates/');
- $this->twig = new \Twig_Environment($loader, ['autoescape' => false, 'strict_variables' => true, 'cache' => __DIR__ . '/cache/']);
+ $this->twig = new \Twig_Environment($loader, ['autoescape' => false, 'strict_variables' => true, 'cache' => __DIR__ . '/cache/', 'auto_reload' => true]);
$this->twig->addFilter('addSlashes', new \Twig_SimpleFilter('addSlashes', 'addslashes'));
$this->twig->addFilter('lcfirst', new \Twig_SimpleFilter('lcfirst', 'lcfirst'));
}

0 comments on commit 24a5cba

Please sign in to comment.