Skip to content

Commit

Permalink
Merge pull request #10 from Zizitto/master
Browse files Browse the repository at this point in the history
 RootNode Undefined Fix For Symfony 4
  • Loading branch information
jbouzekri authored Jul 5, 2019
2 parents a2df3bc + 3b499b8 commit 83a660e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +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
->children()
->arrayNode('server')
Expand Down

0 comments on commit 83a660e

Please sign in to comment.