]> Raphaƫl G. Git Repositories - userbundle/blobdiff - DependencyInjection/Configuration.php
Update to new symfony 4.x style
[userbundle] / DependencyInjection / Configuration.php
index 14066d194b5564470e7b85a14e91103d2adf07b6..5ef87180a7fa221d328675c2116c91582f1da3b6 100644 (file)
@@ -16,7 +16,7 @@ class Configuration implements ConfigurationInterface {
         */
        public function getConfigTreeBuilder() {
                //Set tree builder
         */
        public function getConfigTreeBuilder() {
                //Set tree builder
-               $treeBuilder = new TreeBuilder();
+               $treeBuilder = new TreeBuilder('parameters');
 
                //The bundle default values
                $defaults = [
 
                //The bundle default values
                $defaults = [
@@ -83,7 +83,7 @@ class Configuration implements ConfigurationInterface {
                //Here we define the parameters that are allowed to configure the bundle.
                $treeBuilder
                        //Parameters
                //Here we define the parameters that are allowed to configure the bundle.
                $treeBuilder
                        //Parameters
-                       ->root('parameters')
+                       ->getRootNode()
                                ->addDefaultsIfNotSet()
                                ->children()
                                        ->arrayNode('rapsys_user')
                                ->addDefaultsIfNotSet()
                                ->children()
                                        ->arrayNode('rapsys_user')