Skip to content

Commit

Permalink
Update bundle configuration for Symfony 4.2 change, see https://githu…
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Dec 3, 2018
1 parent 1920b46 commit fa28731
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DependencyInjection/Configuration.php
Expand Up @@ -9,8 +9,14 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('oneup_uploader');
$treeBuilder = new TreeBuilder('oneup_uploader');

if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $treeBuilder->root('oneup_uploader');
}

$rootNode
->children()
Expand Down

0 comments on commit fa28731

Please sign in to comment.