enable assets when templates are enabled
This puts back the default behavior of Symfony 2.8 where the Asset component features were implicitly configured with sensible default values when no explicit configuration was present but the templating section was enabled.
This commit is contained in:
parent
65e378d01b
commit
d0de425072
@ -43,6 +43,14 @@ class Configuration implements ConfigurationInterface
|
|||||||
$rootNode = $treeBuilder->root('framework');
|
$rootNode = $treeBuilder->root('framework');
|
||||||
|
|
||||||
$rootNode
|
$rootNode
|
||||||
|
->beforeNormalization()
|
||||||
|
->ifTrue(function ($v) { return !isset($v['assets']) && isset($v['templating']); })
|
||||||
|
->then(function ($v) {
|
||||||
|
$v['assets'] = array();
|
||||||
|
|
||||||
|
return $v;
|
||||||
|
})
|
||||||
|
->end()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('secret')->end()
|
->scalarNode('secret')->end()
|
||||||
->scalarNode('http_method_override')
|
->scalarNode('http_method_override')
|
||||||
|
Reference in New Issue
Block a user