Skip to content

Commit

Permalink
Fix root node name
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric authored Oct 7, 2019
1 parent 4b291f2 commit a4eaed5
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 @@ -35,10 +35,10 @@ public function getConfigTreeBuilder()
{
$c = $this->container;

$tb = new TreeBuilder($this->rootNodeName);
$tb = new TreeBuilder('jms_translation');
// Keep compatibility with symfony/config < 4.2
if (!method_exists($tb, 'getRootNode')) {
$rootNode = $tb->root($this->rootNodeName);
$rootNode = $tb->root('jms_translation');
} else {
$rootNode = $tb->getRootNode();
}
Expand Down

0 comments on commit a4eaed5

Please sign in to comment.