From 0f29e64f74dc193b00e35d994128db0320d047cd Mon Sep 17 00:00:00 2001 From: Christian Kerl Date: Sat, 26 Mar 2011 16:43:41 +0100 Subject: [PATCH] added empty configuration definition --- DependencyInjection/Configuration.php | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 DependencyInjection/Configuration.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php new file mode 100644 index 0000000..43667cb --- /dev/null +++ b/DependencyInjection/Configuration.php @@ -0,0 +1,40 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace Bundle\WebServiceBundle\DependencyInjection; + +use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; +use Symfony\Component\Config\Definition\Builder\TreeBuilder; + +/** + * WebServiceExtension configuration structure. + * + * @author Christian Kerl + */ +class Configuration +{ + /** + * Generates the configuration tree. + * + * @return \Symfony\Component\Config\Definition\ArrayNode The config tree + */ + public function getConfigTree() + { + $treeBuilder = new TreeBuilder(); + $rootNode = $treeBuilder->root('webservice'); + + $rootNode + ->children() + ->end() + ; + + return $treeBuilder->buildTree(); + } +}