Source of file Configuration.php
Size: 1,749 Bytes - Last Modified: 2013-07-09T11:29:53+02:00
/home/theseer/Downloads/Symfony/vendor/sensio/framework-extra-bundle/Sensio/Bundle/FrameworkExtraBundle/DependencyInjection/Configuration.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | <?php namespace Sensio\Bundle\FrameworkExtraBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\Definition\NodeInterface; /** * FrameworkExtraBundle configuration structure. * * @author Henrik Bjornskov <hb@peytz.dk> */ class Configuration implements ConfigurationInterface { /** * Generates the configuration tree. * * @return NodeInterface */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('sensio_framework_extra', 'array'); $rootNode ->children() ->arrayNode('router') ->addDefaultsIfNotSet() ->children() ->booleanNode('annotations')->defaultTrue()->end() ->end() ->end() ->arrayNode('request') ->addDefaultsIfNotSet() ->children() ->booleanNode('converters')->defaultTrue()->end() ->end() ->end() ->arrayNode('view') ->addDefaultsIfNotSet() ->children() ->booleanNode('annotations')->defaultTrue()->end() ->end() ->end() ->arrayNode('cache') ->addDefaultsIfNotSet() ->children() ->booleanNode('annotations')->defaultTrue()->end() ->end() ->end() ->end() ; return $treeBuilder; } } |