]> Raphaël G. Git Repositories - userbundle/commitdiff
Update to new symfony 4.x style
authorRaphaël Gertz <git@rapsys.eu>
Mon, 28 Oct 2019 20:06:16 +0000 (21:06 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 28 Oct 2019 20:06:16 +0000 (21:06 +0100)
DependencyInjection/Configuration.php

index 14066d194b5564470e7b85a14e91103d2adf07b6..5ef87180a7fa221d328675c2116c91582f1da3b6 100644 (file)
@@ -16,7 +16,7 @@ class Configuration implements ConfigurationInterface {
         */
        public function getConfigTreeBuilder() {
                //Set tree builder
-               $treeBuilder = new TreeBuilder();
+               $treeBuilder = new TreeBuilder('parameters');
 
                //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
-                       ->root('parameters')
+                       ->getRootNode()
                                ->addDefaultsIfNotSet()
                                ->children()
                                        ->arrayNode('rapsys_user')