- ->arrayNode('config')
- ->addDefaultsIfNotSet()
- ->children()
- ->scalarNode('prefix')->cannotBeEmpty()->defaultValue($defaults['config']['prefix'])->end()
- ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['config']['name'])->end()
- ->scalarNode('scheme')->cannotBeEmpty()->defaultValue($defaults['config']['scheme'])->end()
- ->integerNode('timeout')->min(0)->max(300)->defaultValue($defaults['config']['timeout'])->end()
- ->scalarNode('agent')->cannotBeEmpty()->defaultValue($defaults['config']['agent'])->end()
- ->integerNode('redirect')->min(1)->max(30)->defaultValue($defaults['config']['redirect'])->end()
- ->end()
- ->end()
- ->arrayNode('output')
- ->addDefaultsIfNotSet()
- ->children()
- ->scalarNode('css')->cannotBeEmpty()->defaultValue($defaults['output']['css'])->end()
- ->scalarNode('js')->cannotBeEmpty()->defaultValue($defaults['output']['js'])->end()
- ->scalarNode('img')->cannotBeEmpty()->defaultValue($defaults['output']['img'])->end()
- ->end()
- ->end()