From f6903cf575f811f81adbd08eb6c3bb455d5a33ef Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 12 Mar 2015 13:13:51 +0100 Subject: [PATCH] builder --- .../AdminBundle/DependencyInjection/Configuration.php | 7 ++----- .../AssetsBundle/DependencyInjection/Configuration.php | 1 + .../ContactBundle/DependencyInjection/Configuration.php | 1 + .../IconsBundle/DependencyInjection/Configuration.php | 1 + .../MediaBundle/DependencyInjection/Configuration.php | 2 +- .../NewsletterBundle/DependencyInjection/Configuration.php | 1 + .../SearchBundle/DependencyInjection/Configuration.php | 1 + .../SecurityBundle/DependencyInjection/Configuration.php | 1 + .../SlideshowBundle/DependencyInjection/Configuration.php | 1 + .../WidgetBundle/DependencyInjection/Configuration.php | 1 + 10 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Trinity/Bundle/AdminBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/AdminBundle/DependencyInjection/Configuration.php index 8568501..8563462 100644 --- a/src/Trinity/Bundle/AdminBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/AdminBundle/DependencyInjection/Configuration.php @@ -18,9 +18,9 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); - /* $treeBuilder->root('trinity_admin'); + $treeBuilder->root('trinity_admin'); - $rootNode + /*$rootNode ->children() ->arrayNode('i18n') ->info('I18n configuration') @@ -38,9 +38,6 @@ class Configuration implements ConfigurationInterface ->end() ;*/ - // Here you should define the parameters that are allowed to - // configure your bundle. See the documentation linked above for - // more information on that topic. return $treeBuilder; } } diff --git a/src/Trinity/Bundle/AssetsBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/AssetsBundle/DependencyInjection/Configuration.php index feb9c81..46012f6 100644 --- a/src/Trinity/Bundle/AssetsBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/AssetsBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_assets'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/ContactBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/ContactBundle/DependencyInjection/Configuration.php index 18a8475..d0b1ec8 100644 --- a/src/Trinity/Bundle/ContactBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/ContactBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_contact'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/IconsBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/IconsBundle/DependencyInjection/Configuration.php index 42622d3..7c45228 100644 --- a/src/Trinity/Bundle/IconsBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/IconsBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_icons'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/MediaBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/MediaBundle/DependencyInjection/Configuration.php index 49de383..efa2f13 100644 --- a/src/Trinity/Bundle/MediaBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/MediaBundle/DependencyInjection/Configuration.php @@ -18,11 +18,11 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_media'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for // more information on that topic. - return $treeBuilder; } } diff --git a/src/Trinity/Bundle/NewsletterBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/NewsletterBundle/DependencyInjection/Configuration.php index 99b2453..bd3f1af 100644 --- a/src/Trinity/Bundle/NewsletterBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/NewsletterBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $rootNode = $treeBuilder->root('trinity_newsletter'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/SearchBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/SearchBundle/DependencyInjection/Configuration.php index 25e9c4a..d90e535 100644 --- a/src/Trinity/Bundle/SearchBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/SearchBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_search'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/SecurityBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/SecurityBundle/DependencyInjection/Configuration.php index 93de4b9..027af63 100644 --- a/src/Trinity/Bundle/SecurityBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/SecurityBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_security'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/SlideshowBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/SlideshowBundle/DependencyInjection/Configuration.php index 2c6640a..b751c78 100644 --- a/src/Trinity/Bundle/SlideshowBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/SlideshowBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_slideshow'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/src/Trinity/Bundle/WidgetBundle/DependencyInjection/Configuration.php b/src/Trinity/Bundle/WidgetBundle/DependencyInjection/Configuration.php index 26540c2..6ac09f0 100644 --- a/src/Trinity/Bundle/WidgetBundle/DependencyInjection/Configuration.php +++ b/src/Trinity/Bundle/WidgetBundle/DependencyInjection/Configuration.php @@ -18,6 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); + $treeBuilder->root('trinity_widget'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for