Skip to content

Commit

Permalink
Merge pull request #75 from chrisguitarguy/root_node
Browse files Browse the repository at this point in the history
Favor TreeBuilder::getRootNode
  • Loading branch information
stobrien89 authored Mar 30, 2023
2 parents c3a3e2f + 2d75b9c commit 73495ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public function getConfigTreeBuilder()
return $treeBuilder;
}

if (method_exists($treeBuilder, 'root')) {
$rootNode = $treeBuilder->root('aws');
} else {
if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
$rootNode = $treeBuilder->root('aws', $treeType);
}

// Define TreeBuilder to allow config validation and merging
Expand Down

0 comments on commit 73495ac

Please sign in to comment.