Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Aug 24, 2018
1 parent eb7d28f commit d9bb1d1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 35 deletions.
43 changes: 23 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 3 additions & 15 deletions src/Renderer/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ class Twig implements RendererInterface
* @var Filesystem
*/
protected $fs;
/**
* @var bool
*/
protected $twigStrict = true;
/**
* @var bool
*/
protected $twigDebug = true;
/*
* @var string|bool
*/
protected $twigCache = false;

/**
* {@inheritdoc}
Expand All @@ -66,10 +54,10 @@ public function __construct($templatesPath, $config)
$loader = new \Twig_Loader_Chain([$loaderFS, $loaderArray]);
// Twig
$this->twig = new \Twig_Environment($loader, [
'debug' => true,
'strict_variables' => true,
'autoescape' => false,
'strict_variables' => $this->twigStrict,
'debug' => $this->twigDebug,
'cache' => $this->twigCache,
'cache' => false,
'auto_reload' => true,
]);
// add extensions
Expand Down

0 comments on commit d9bb1d1

Please sign in to comment.