Skip to content

Commit

Permalink
Fix configuration root node (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-rath committed Aug 2, 2022
1 parent 24e9dc9 commit d3f2eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('massive_pdf');
if (method_exists($treeBuilder, 'getRootNode')) {
$root = $treeBuilder->getRootNode();
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$root = $treeBuilder->root('massive_pdf');
$rootNode = $treeBuilder->root('massive_pdf');
}

$rootNode
Expand Down

0 comments on commit d3f2eab

Please sign in to comment.