Skip to content

Commit

Permalink
Merge pull request #501 from hjanuschka/patch-1
Browse files Browse the repository at this point in the history
Deprecation fix for SF4.2
  • Loading branch information
alcaeus committed Nov 28, 2018
2 parents 0749e03 + a964e25 commit 13d6b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('doctrine_mongodb');
$treeBuilder = new TreeBuilder('doctrine_mongodb');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('doctrine_mongodb');

$this->addDocumentManagersSection($rootNode);
$this->addConnectionsSection($rootNode);
Expand Down

0 comments on commit 13d6b1d

Please sign in to comment.