Answers for "DEPRICATED: Configuration, tree builder"

PHP
1

TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead.

$treeBuilder = new TreeBuilder('bundle_id');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('bundle_id');
Posted by: Guest on May-07-2020

Browse Popular Code Answers by Language