- ->scalarNode('logo')->defaultValue($defaults['logo'])->treatNullLike($defaults['logo'])->cannotBeEmpty()->end()
- ->scalarNode('title')->defaultValue($defaults['title'])->treatNullLike($defaults['title'])->cannotBeEmpty()->end()
- ->scalarNode('contact_name')->defaultValue($defaults['contact_name'])->treatNullLike($defaults['contact_name'])->cannotBeEmpty()->end()
- ->scalarNode('contact_mail')->defaultValue($defaults['contact_mail'])->treatNullLike($defaults['contact_mail'])->cannotBeEmpty()->end()
+ ->arrayNode('site')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('logo')->cannotBeEmpty()->defaultValue($defaults['site']['logo'])->end()
+ ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['site']['title'])->end()
+ ->end()
+ ->end()
+ ->arrayNode('copy')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('long')->defaultValue($defaults['copy']['long'])->end()
+ ->scalarNode('short')->defaultValue($defaults['copy']['short'])->end()
+ ->end()
+ ->end()
+ ->arrayNode('contact')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end()
+ ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
+ ->end()
+ ->end()