public function __construct(Silex\Application $app, $safe = false) { $this->app = $app; $this->safe = $safe; if ($safe) { $this->twigKey = 'safe_twig'; } else { $this->twigKey = 'twig'; } }