Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev committed May 12, 2019
2 parents 5e9d97d + ac76dfa commit c128b84
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('social_post');
$rootNode = $treeBuilder->getRootNode($treeBuilder, 'social_post');
if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
$rootNode = $treeBuilder->root('social_post');
}

$rootNode
->children()
Expand Down

0 comments on commit c128b84

Please sign in to comment.