+ ->arrayNode('route')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->arrayNode('index')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['route']['index']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['route']['index']['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()