- ->scalarNode('coutput')->defaultValue('css/*.pack.css')->end()
- ->scalarNode('joutput')->defaultValue('js/*.pack.js')->end()
- ->scalarNode('ioutput')->defaultValue('img/*.pack.jpg')->end()
- ->arrayNode('cfilter')
- ->treatNullLike(array())
- ->scalarPrototype()->end()
- ->defaultValue(array('Rapsys\PackBundle\Twig\Filter\CPackFilter'))
- ->end()
- ->arrayNode('jfilter')
- ->treatNullLike(array())
- ->scalarPrototype()->end()
- ->defaultValue(array('Rapsys\PackBundle\Twig\Filter\JPackFilter'))
- ->end()
- ->arrayNode('ifilter')
- ->treatNullLike(array())
- ->scalarPrototype()->end()
- ->defaultValue(array('Rapsys\PackBundle\Twig\Filter\IPackFilter'))
- ->end()
- ->scalarNode('prefix')->defaultValue($this->projectDir)->end()
- ->scalarNode('scheme')->defaultValue('https://')->end()
- ->integerNode('timeout')->min(0)->defaultValue((int)ini_get('default_socket_timeout'))->end()
- ->scalarNode('agent')->defaultValue(ini_get('user_agent'))->end()
- ->integerNode('redirect')->min(1)->defaultValue(20)->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()