]
],
'translate' => [],
- 'locales' => '%kernel.translator.fallbacks%',
'languages' => [
'en_gb' => 'English'
],
->scalarPrototype()->end()
->end()
->arrayNode('default')
- ->addDefaultsIfNotSet()
- ->children()
- ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['default']['civility'])->end()
- ->arrayNode('group')
- ->treatNullLike([])
- ->defaultValue($defaults['default']['group'])
- ->scalarPrototype()->end()
- ->end()
- ->end()
+ ->treatNullLike([])
+ ->defaultValue($defaults['default'])
+ ->variablePrototype()->end()
->end()
->arrayNode('route')
->addDefaultsIfNotSet()
->defaultValue($defaults['translate'])
->scalarPrototype()->end()
->end()
- ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end()
+ #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
->arrayNode('languages')
->treatNullLike([])
->defaultValue($defaults['languages'])