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 476ee86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ public function __construct(bool $debug)

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

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

return $treeBuilder;
return $rootNode;
}

private function addCacheConfig(ArrayNodeDefinition $rootNode): ArrayNodeDefinition
Expand Down

0 comments on commit 476ee86

Please sign in to comment.