Skip to content

Commit

Permalink
Fix depreciation
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Dec 24, 2023
1 parent 2d3695c commit fe83125
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ public function __construct(bool $debug)

public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('rulerz');
$treeBuilder = new TreeBuilder('rulerz');

$this->addCacheConfig($rootNode);
$this->addDebugConfig($rootNode);
$this->addTargetsConfig($rootNode);
$this->addCacheConfig($treeBuilder->getRootNode());
$this->addDebugConfig($treeBuilder->getRootNode());
$this->addTargetsConfig($treeBuilder->getRootNode());

return $treeBuilder;
}
Expand Down

0 comments on commit fe83125

Please sign in to comment.