seferov/awsBundle

The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "seferov_aws" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.

Opened this issue · 1 comments

Q A
BC Break no
Version 3.0.0

Summary

After updated my Symfony project, I have got this deprecated message :

The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "seferov_aws" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.

/var/www/html/vendor/seferov/aws-bundle/DependencyInjection/Configuration.php:28 {
    › $treeBuilder = new TreeBuilder();
    › $rootNode = $treeBuilder->root('seferov_aws');
  }

Posible solution

...
if (Kernel::VERSION_ID >= 40200) {
    $root = new TreeBuilder('seferov_aws');
} else {
    $builder = new TreeBuilder();
    $root = $builder->root('seferov_aws');
}
...

@dboyadzhiev thank you for your report! Your solution seems good.

I will update it. If you have time, you are more than welcome to open pull request.