Skip to content

Commit

Permalink
Adding SF 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWinter committed Apr 26, 2020
1 parent 08be39b commit c5f5f5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ class Configuration implements ConfigurationInterface {
public function getConfigTreeBuilder() {

//Create tree builder
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('ambta_doctrine_encrypt');
if (method_exists(TreeBuilder::class, 'getRootNode')) {
$treeBuilder = new TreeBuilder('ambta_doctrine_encrypt');
$rootNode = $treeBuilder->getRootNode();
} else {
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('ambta_doctrine_encrypt');
}

// Grammar of config tree
$rootNode
Expand Down

0 comments on commit c5f5f5f

Please sign in to comment.