- ->arrayNode('ifilter')
- ->treatNullLike(array())
- ->scalarPrototype()->end()
- ->defaultValue(array('Rapsys\PackBundle\Twig\Filter\IPackFilter'))
+ ->arrayNode('filters')
+ ->isRequired()
+ ->addDefaultsIfNotSet()
+ ->children()
+ ->arrayNode('css')
+ #XXX: undocumented, see Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +513
+ ->addDefaultChildrenIfNoneSet()
+ ->arrayPrototype()
+ ->children()
+ ->scalarNode('class')
+ ->isRequired()
+ ->defaultValue($defaults['filters']['css']['class'])
+ ->end()
+ ->arrayNode('args')
+ ->isRequired()
+ ->treatNullLike(array())
+ ->defaultValue($defaults['filters']['css']['args'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('js')
+ #XXX: undocumented, see Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +513
+ ->addDefaultChildrenIfNoneSet()
+ ->arrayPrototype()
+ ->children()
+ ->scalarNode('class')
+ ->isRequired()
+ ->defaultValue($defaults['filters']['js']['class'])
+ ->end()
+ ->arrayNode('args')
+ ->isRequired()
+ ->treatNullLike(array())
+ ->defaultValue($defaults['filters']['js']['args'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->arrayNode('img')
+ #XXX: undocumented, see Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +513
+ ->addDefaultChildrenIfNoneSet()
+ ->arrayPrototype()
+ ->children()
+ ->scalarNode('class')
+ ->isRequired()
+ ->defaultValue($defaults['filters']['img']['class'])
+ ->end()
+ ->arrayNode('args')
+ ->isRequired()
+ ->treatNullLike(array())
+ ->defaultValue($defaults['filters']['img']['args'])
+ ->scalarPrototype()->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()
+ ->end()