From 6e1d7f7295c7d66282aad5603705009b931d70b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 28 Oct 2019 21:20:38 +0100 Subject: [PATCH] Switch to 4.2 symfony style --- DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 13d24a7..9be5f15 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -15,7 +15,7 @@ class Configuration implements ConfigurationInterface { * {@inheritdoc} */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); + $treeBuilder = new TreeBuilder('parameters'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for @@ -36,7 +36,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_air') -- 2.41.0