+ ->arrayNode('route')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->arrayNode('homepage')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['homepage']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['homepage']['context'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('login')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['login']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['login']['context'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('recover')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['recover']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['recover']['context'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('recover_mail')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['recover_mail']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['recover_mail']['context'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('register')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['register']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['register']['context'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()