We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf67ada commit a550c40Copy full SHA for a550c40
DependencyInjection/Configuration.php
@@ -30,9 +30,8 @@ public function __construct($name)
30
31
public function getConfigTreeBuilder()
32
{
33
- $tree = new TreeBuilder();
34
-
35
- $rootNode = $tree->root($this->name);
+ $tree = new TreeBuilder($this->name);
+ $rootNode = \method_exists(TreeBuilder::class, 'getRootNode') ? $tree->getRootNode() : $tree->root($this->name);
36
37
$rootNode
38
->children()
0 commit comments