This parameter is overridden later and is a closure.

This commit is contained in:
Benoît Burnichon
2015-11-04 16:29:35 +01:00
parent fe1d5a9f89
commit 0d105ed77e

View File

@@ -241,11 +241,7 @@ class Application extends SilexApplication
$this->register(new TemporaryFilesystemServiceProvider());
$this->register(new TokensServiceProvider());
$this->register(new HttpFragmentServiceProvider());
$this->register(new TwigServiceProvider(), [
'twig.options' => [
'cache' => $this->share(function($app) {return $app['cache.path'].'/twig';}),
],
]);
$this->register(new TwigServiceProvider());
$this->setupTwig();
$this->register(new TranslationServiceProvider(), [
'locale_fallbacks' => ['fr'],