From 0403b2401a398d7fe7476dea84ab615143b09a5b Mon Sep 17 00:00:00 2001 From: Zizitto Date: Fri, 5 Jul 2019 08:47:54 +0300 Subject: [PATCH 1/2] RootNode Undefined Fix --- DependencyInjection/Configuration.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 4bdf31a..6d0eb25 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -25,9 +25,10 @@ public function getConfigTreeBuilder() $treeBuilder = new TreeBuilder('jb_phumbor'); } else { $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('jb_phumbor'); } + $rootNode = $treeBuilder->root('jb_phumbor'); + $rootNode ->children() ->arrayNode('server') From 3b499b8faeae558175438e5518cf492616629420 Mon Sep 17 00:00:00 2001 From: Zizitto Date: Fri, 5 Jul 2019 10:24:23 +0300 Subject: [PATCH 2/2] Update Configuration.php --- DependencyInjection/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 6d0eb25..248d606 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -23,12 +23,12 @@ public function getConfigTreeBuilder() { if (Kernel::VERSION_ID >= 40200) { $treeBuilder = new TreeBuilder('jb_phumbor'); + $rootNode = $treeBuilder->getRootNode(); } else { $treeBuilder = new TreeBuilder(); + $rootNode = $treeBuilder->root('jb_phumbor'); } - - $rootNode = $treeBuilder->root('jb_phumbor'); - + $rootNode ->children() ->arrayNode('server')