solvecrew / ExpoNotificationsBundle

Symfony bundle to handle the BE parts of the push notifications from the expo react-native framework.
MIT License
20 stars 17 forks source link

Symfony 4.3+ deprecation warning #28

Open netandreus opened 3 years ago

netandreus commented 3 years ago

Problem

I got a deprecation warning:

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

Path

/vendor/solvecrew/expo-notifications-bundle/DependencyInjection/Configuration.php:24 {▼
    › $treeBuilder = new TreeBuilder();
    › $rootNode = $treeBuilder->root('sc_expo_notifications');

Possible fix

    › $treeBuilder = new TreeBuilder('sc_expo_notifications');

Please fix this.

netandreus commented 3 years ago

See https://github.com/solvecrew/ExpoNotificationsBundle/compare/develop...netandreus:symfony-4.4