Skip to content

Commit

Permalink
Merge pull request #24 from arendjantetteroo/patch-2
Browse files Browse the repository at this point in the history
Fix symfony 4.2 treebuilder deprecation
  • Loading branch information
caciobanu authored Dec 4, 2018
2 parents 27a0fb1 + 06ae49d commit 7e0d34e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('mongo_db_migrations', 'array');

$treeBuilder = new TreeBuilder('mongo_db_migrations', 'array');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('mongo_db_migrations', 'array');
$rootNode
->children()
->scalarNode('collection_name')->defaultValue('migration_versions')->cannotBeEmpty()->end()
Expand Down

0 comments on commit 7e0d34e

Please sign in to comment.