Skip to content

Commit

Permalink
Merge 4b3d414 into 5122e11
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev committed May 12, 2019
2 parents 5122e11 + 4b3d414 commit a9ca3b7
Showing 1 changed file with 5 additions and 1 deletion.
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 a9ca3b7

Please sign in to comment.