|
@@ -157,6 +157,13 @@ class FrameworkExtension extends Extension
|
|
$this->registerEsiConfiguration($config, $container);
|
|
$this->registerEsiConfiguration($config, $container);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (isset($config['cache-warmer'])) {
|
|
|
|
+ $config['cache_warmer'] = $config['cache-warmer'];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $warmer = isset($config['cache_warmer']) ? $config['cache_warmer'] : !$container->getParameter('kernel.debug');
|
|
|
|
+ $container->setParameter('kernel.cache_warmup', $warmer);
|
|
|
|
+
|
|
$this->addClassesToCompile(array(
|
|
$this->addClassesToCompile(array(
|
|
'Symfony\\Component\\HttpFoundation\\ParameterBag',
|
|
'Symfony\\Component\\HttpFoundation\\ParameterBag',
|
|
'Symfony\\Component\\HttpFoundation\\HeaderBag',
|
|
'Symfony\\Component\\HttpFoundation\\HeaderBag',
|
|
@@ -276,7 +283,6 @@ class FrameworkExtension extends Extension
|
|
|
|
|
|
// compilation
|
|
// compilation
|
|
$this->addClassesToCompile(array(
|
|
$this->addClassesToCompile(array(
|
|
- 'Symfony\\Component\\Templating\\DelegatingEngine',
|
|
|
|
'Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface',
|
|
'Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface',
|
|
'Symfony\\Component\\Templating\\EngineInterface',
|
|
'Symfony\\Component\\Templating\\EngineInterface',
|
|
));
|
|
));
|