Mercurial > hg > dml-open-vis
annotate src/Kachkaev/JstmplBundle/DependencyInjection/Configuration.php @ 1:f38015048f48 tip
Added GPL
author | Daniel Wolff |
---|---|
date | Sat, 13 Feb 2016 20:43:38 +0100 |
parents | 493bcb69166c |
children |
rev | line source |
---|---|
Daniel@0 | 1 <?php |
Daniel@0 | 2 |
Daniel@0 | 3 namespace Kachkaev\JstmplBundle\DependencyInjection; |
Daniel@0 | 4 |
Daniel@0 | 5 use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
Daniel@0 | 6 use Symfony\Component\Config\Definition\ConfigurationInterface; |
Daniel@0 | 7 |
Daniel@0 | 8 /** |
Daniel@0 | 9 * This is the class that validates and merges configuration from your app/config files |
Daniel@0 | 10 * |
Daniel@0 | 11 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} |
Daniel@0 | 12 */ |
Daniel@0 | 13 class Configuration implements ConfigurationInterface |
Daniel@0 | 14 { |
Daniel@0 | 15 /** |
Daniel@0 | 16 * {@inheritDoc} |
Daniel@0 | 17 */ |
Daniel@0 | 18 public function getConfigTreeBuilder() |
Daniel@0 | 19 { |
Daniel@0 | 20 $treeBuilder = new TreeBuilder(); |
Daniel@0 | 21 $rootNode = $treeBuilder->root('jstmpl'); |
Daniel@0 | 22 |
Daniel@0 | 23 $rootNode |
Daniel@0 | 24 ->children() |
Daniel@0 | 25 ->arrayNode('source') |
Daniel@0 | 26 ->children() |
Daniel@0 | 27 ->arrayNode('patterns') |
Daniel@0 | 28 ->prototype('scalar') |
Daniel@0 | 29 ->end() |
Daniel@0 | 30 ->end() |
Daniel@0 | 31 ->end() |
Daniel@0 | 32 ->end(); |
Daniel@0 | 33 |
Daniel@0 | 34 return $treeBuilder; |
Daniel@0 | 35 } |
Daniel@0 | 36 } |