Skip to content

Commit

Permalink
Merge pull request #134 from opensalt/symfony-config-deprecation
Browse files Browse the repository at this point in the history
fix root node deprecation in symfony-config > 4.1
  • Loading branch information
tetranz authored Jun 17, 2019
2 parents 635c8a1 + 1d66d14 commit fe03aa2
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 @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('tetranz_select2_entity');
$treeBuilder = new TreeBuilder('tetranz_select2_entity');
$rootNode = \method_exists($treeBuilder, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('tetranz_select2_entity');

$rootNode
->children()
Expand Down

0 comments on commit fe03aa2

Please sign in to comment.