From: Raphaƫl Gertz Date: Mon, 28 Oct 2019 20:06:16 +0000 (+0100) Subject: Update to new symfony 4.x style X-Git-Tag: 0.0.2~4 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/a15c67f3328e55845e53257618a4d5ad612e4e05?ds=sidebyside;hp=efa6c60e1cbb85c6b36745e3570e71bb2f92b7ce Update to new symfony 4.x style --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 14066d1..5ef8718 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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')