Skip to content

Commit

Permalink
Merge pull request #7 from stof/patch-1
Browse files Browse the repository at this point in the history
Fix the bundle configuration tree
  • Loading branch information
goetas authored Jan 8, 2019
2 parents 95c7f45 + 1561bc7 commit 595f35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public function getConfigTreeBuilder()
{
$tb = new TreeBuilder('goetas_multipart_upload');

if (method_exists($tb, 'goetas_multipart_upload')) {
if (method_exists($tb, 'getRootNode')) {
$root = $tb->getRootNode()->children();
} else {
$root = $tb->root('jms_serializer')->children();
$root = $tb->root('goetas_multipart_upload')->children();
}

$root
Expand Down

0 comments on commit 595f35d

Please sign in to comment.