]
],
'translate' => [],
- 'locales' => '%kernel.translator.fallbacks%',
'languages' => [
'en_gb' => 'English'
],
'contact' => [
- 'title' => 'John Doe',
- 'mail' => 'contact@example.com'
+ 'address' => 'contact@example.com',
+ 'name' => 'John Doe'
],
'context' => [],
'edit' => [
->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'])
->arrayNode('contact')
->addDefaultsIfNotSet()
->children()
- ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end()
- ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
+ ->scalarNode('address')->cannotBeEmpty()->defaultValue($defaults['contact']['address'])->end()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end()
->end()
->end()
->arrayNode('context')