Skip to content

Commit

Permalink
Merge pull request #43 from mkuhles/master
Browse files Browse the repository at this point in the history
[Symfony 4.3] Update dependency injection configuration
  • Loading branch information
nacmartin authored Dec 30, 2019
2 parents d38f3ab + 753b266 commit 0e9dfac
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 @@ -15,8 +15,13 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('limenius_react');
$treeBuilder = new TreeBuilder('limenius_react');
if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $treeBuilder->root('limenius_react');
}
$rootNode
->children()
->enumNode('default_rendering')
Expand Down

0 comments on commit 0e9dfac

Please sign in to comment.