-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
After upgrading Symfony I see this warning in the console:
The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "comur_image" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead.
This is due to the change at symfony/symfony#27476
We need to maintain compatibility with Symfony 3 and 4.2, so suggested fix is:
$treeBuilder = new TreeBuilder("my_node");
$rootNode = method_exists($treeBuilder, "getRootNode")
? $treeBuilder->getRootNode()
: $treeBuilder->root("my_node"); // BC layer for symfony/config 4.2 and older
Metadata
Metadata
Assignees
Labels
No labels