From a15c67f3328e55845e53257618a4d5ad612e4e05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 28 Oct 2019 21:06:16 +0100 Subject: [PATCH] Update to new symfony 4.x style --- DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') -- 2.41.1