- ->scalarNode('url_name')->isRequired()->defaultValue($defaults['recover']['url_name'])->end()
- ->arrayNode('url_args')
- ->isRequired()
- ->treatNullLike($defaults['recover']['url_args'])
- ->defaultValue($defaults['recover']['url_args'])
- ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->arrayNode('mail')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('subject')->cannotBeEmpty()->defaultValue($defaults['recover_mail']['mail']['subject'])->end()
+ ->scalarNode('html')->cannotBeEmpty()->defaultValue($defaults['recover_mail']['mail']['html'])->end()
+ ->scalarNode('text')->cannotBeEmpty()->defaultValue($defaults['recover_mail']['mail']['text'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['recover_mail']['mail']['context'])
+ ->variablePrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('register')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->arrayNode('route')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['register']['route'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->arrayNode('view')
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->scalarNode('form')->cannotBeEmpty()->defaultValue($defaults['register']['view']['form'])->end()
+ ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['register']['view']['name'])->end()
+ ->arrayNode('context')
+ ->treatNullLike(array())
+ ->defaultValue($defaults['register']['view']['context'])
+ ->variablePrototype()->end()