Skip to content

Commit

Permalink
Remove deprecation
Browse files Browse the repository at this point in the history
A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
  • Loading branch information
tabbi89 authored Dec 5, 2018
1 parent 4b51f1f commit dae3838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('tactician_domain_event');
$treeBuilder = new TreeBuilder('tactician_domain_event');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('tactician_domain_event');

$rootNode
->children()
Expand Down

0 comments on commit dae3838

Please sign in to comment.