]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/Configuration.php
Cleanup
[packbundle] / DependencyInjection / Configuration.php
index 5456a29d0ccf02b56b7450e356c9aaf9cc29561e..bfa4b3cd424cb30af9051ded1b9035c98d51f9af 100644 (file)
@@ -22,7 +22,7 @@ class Configuration implements ConfigurationInterface {
         */
        public function getConfigTreeBuilder() {
                //Get TreeBuilder object
-               $treeBuilder = new TreeBuilder();
+               $treeBuilder = new TreeBuilder('parameters');
 
                //Get ExecutableFinder object
                $finder = new ExecutableFinder();
@@ -84,7 +84,7 @@ class Configuration implements ConfigurationInterface {
                //Here we define the parameters that are allowed to configure the bundle.
                $treeBuilder
                        //Parameters
-                       ->root('parameters')
+                       ->getRootNode()
                                ->addDefaultsIfNotSet()
                                ->children()
                                        ->arrayNode('rapsys_pack')